Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

sync-template同步模板

Agent Skill

sync-template 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

759

周安装

31

GitHub Stars

3

下载量

243
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:sync-template(同步模板)
来源仓库:https://github.com/blogic-cz/blogic-marketplace
仓库路径:skills/sync-template
安装命令:
npx skills add https://github.com/blogic-cz/blogic-marketplace --skill sync-template
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/blogic-cz/blogic-marketplace --skill sync-template

简介

用于在 Codex、Claude、Cursor、Gemini CLI 中查找和筛选相关信息。

  • 支持根据关键词、任务场景或来源线索快速定位候选结果。
  • 可结合原始 README 和仓库内容进一步核验具体用法。
  • 安装前建议确认权限范围和维护状态,避免触发不必要操作。
  • 安装方式:通过 GitHub 仓库使用 npx 命令添加。

SKILL.md

Sync Template

Synchronize a downstream project generated from blogic-template-ts with the latest upstream template state.

Use blogic-cz/blogic-template-ts as source of truth.

Prefer this local path when available:

opensrc/repos/github.com/blogic-cz/blogic-template-ts/

Reference that path as $TPL in commands.

Prerequisites

  • Use gh CLI authenticated when available.
  • Load debugging-with-opensrc skill when available; otherwise run equivalent opensrc / git commands directly.
  • Use agent-tools (gh-tool release list/view) when available; otherwise use native gh release list/view.
  • Clone template with opensrc when available; otherwise clone https://github.com/blogic-cz/blogic-template-ts into a temporary local directory and use that path as $TPL.

Phase 0: Discovery — What Changed in the Template

Step 0: Materialize template source locally

Materialize the template repo before diffing:

bun run opensrc:use blogic-cz/blogic-template-ts
ls opensrc/repos/github.com/blogic-cz/blogic-template-ts/

If opensrc is unavailable, clone with git clone and set $TPL to that clone path.

Step 1: Detect current template version in project

Detect the current template version marker:

  • package.json (templateVersion, template-version, synced-from)
  • .template-version
  • Git history for sync commits
  • CHANGELOG.md sync entries

If no baseline exists, request the baseline version from the user before continuing.

Step 2: Enumerate upstream changes since baseline

Enumerate changes with releases, commits, and PR metadata:

gh-tool release list --repo blogic-cz/blogic-template-ts
gh-tool release view <tag> --repo blogic-cz/blogic-template-ts
gh pr list --repo blogic-cz/blogic-template-ts --state merged --search "merged:>YYYY-MM-DD" --limit 50

When gh-tool is unavailable, replace gh-tool commands with gh release... commands.

Step 3: Categorize changes for adoption strategy

Classify each change into one category:

CategoryDescriptionAction
InfrastructureCI/CD, Docker, Helm, configs, toolingAdopt directly (with name substitution)
DependenciesPackage version bumps, new depsDelegate to update-packages skill
PatternsCode patterns, conventions, lint rulesAdopt with adaptation
FeaturesNew app features, routes, servicesEvaluate — may not apply
FixesBug fixes in shared codeAdopt if the bug exists in project

Output a summary table:

| # | Category | Change | Template Files | Effort | Priority |
|---|----------|--------|---------------|--------|----------|

Phase 1: Package Updates First (MANDATORY)

Align package versions before applying template file sync.

Step 1: Compare project and template package versions

Read package manifests in both trees and build a version-gap table.

Build a comparison table:

| Package | Project Version | Template Version | Gap |
|---------|----------------|-----------------|-----|

Step 2: Execute package updates

If packages are behind, prefer update-packages skill. If that skill is unavailable, run equivalent manual updates with the same constraints.

Apply this sequence:

  1. Create branch: chore/sync-template-packages-$(date +%y%m%d-%H%M)
  2. Update only already-used packages to template version or newer.
  3. Commit package updates separately before template file sync commits.
  4. Verify with project checks before continuing.

Apply these rules:

  • Package updates MUST be committed before any template changes
  • Preserve package-group coordination (tanstack, trpc, effect, drizzle)
  • DO NOT add packages the project doesn't use — only update existing ones

Phase 2: Deep Scan & Diff

Compare the project against the template file by file to find all divergences.

Step 1: Identify infrastructure files to adopt

Load references/template-files.md for the categorized file list.

For each infrastructure file:

  1. Check if the file exists in the project
  2. If it exists, diff it against the template version
  3. If it doesn't exist, flag it as "missing from project"
git diff --no-index $TPL/<file> <file>

Step 2: Build the name substitution matrix

Build substitution matrix per references/substitution-rules.md.

Step 3: Identify project-specific divergences to preserve

Flag intentional business-logic divergences and preserve them:

  • apps/web-app/src/routes/ — project-specific routes
  • packages/services/src/ — project-specific services
  • packages/db/src/schema/ — project-specific schema (beyond template defaults)
  • Environment-specific configs (Helm values, CI secrets)

Apply these rules:

  • NEVER overwrite project-specific business logic with template defaults
  • Template infrastructure files (lint, tooling, CI) should be adopted fully
  • When a file has BOTH infrastructure changes AND project-specific content, merge selectively

Phase 3: Triage & Plan

Generate a phased implementation plan in .sisyphus/plans/.

Step 1: Create the plan file

mkdir -p .sisyphus/plans

Name: .sisyphus/plans/YYMMDDHHMM-sync-template-vX.Y.Z.md

Step 2: Apply canonical plan format

Load and apply references/plan-template.md.

Step 3: Wave organization

Standard wave pattern for template sync:

Wave 0 (Sequential — foundation):
└── Package updates (if not done in Phase 1)

Wave 1 (Parallel — infrastructure):
├── Skills & tooling updates
├── Lint & formatter config
├── CI/CD pipeline updates
├── Docker & Helm updates
└── Config file updates (tsconfig, vitest, etc.)

Wave 2 (After Wave 1 — code changes):
├── Fix lint violations from new rules
├── Apply code pattern updates
└── Update docs (AGENTS.md, README)

Wave 3 (After Wave 2 — cleanup):
└── Final cleanup + verification

Wave FINAL (After ALL — verification):
├── Plan compliance audit
├── Code quality review
└── Scope fidelity check

Step 4: Present plan to user

Present summary and wait for explicit approval before execution:

## Sync Template v<old> → v<new>

**Changes**: N commits, M PRs, K releases
**Waves**: 4 (+ verification)
**Tasks**: N total
**Estimated effort**: [Small/Medium/Large]

Approve to start execution?

Phase 4: Execution

Execute the plan wave by wave.

Prefer task delegation when subagents are available.

Fallback when subagents are unavailable: execute tasks sequentially in the main agent, keep the same acceptance criteria, and preserve planned commit grouping.

Per-task execution flow

For each task in the plan:

  1. Mark TODO in_progress
  2. Execute task (delegate when available; otherwise run directly)
  3. Verify acceptance criteria
  4. Run QA scenario
  5. Mark TODO completed
  6. Commit as specified in plan

Delegation prompt template

Use the delegation prompt from references/plan-template.md.

After each wave

bun run check
bun run test

Resolve failures before the next wave.


Phase 5: Verification & Stamp

Run verification recipes from references/verification-recipes.md.

Apply substitution policy from references/substitution-rules.md.


Guardrails

  • NEVER overwrite project-specific business logic (routes, services, schema beyond defaults)
  • NEVER leave @blogic-template/ or blogic-template-ts strings in synced project files, except approved exceptions in references/substitution-rules.md
  • ALWAYS clone the template via bun run opensrc:use blogic-cz/blogic-template-ts first
  • ALWAYS apply the name substitution matrix to every file copied from the template
  • ALWAYS update packages FIRST before applying infrastructure changes
  • ALWAYS run bun run check && bun run test after each wave
  • ALWAYS preserve project-specific configurations (Sentry project, Helm namespaces, CI secrets)
  • DO NOT add template-only dependencies the project doesn't need
  • DO NOT apply template features the project hasn't opted into
  • DO NOT use hardcoded absolute paths — always use relative opensrc/repos/github.com/blogic-cz/blogic-template-ts/

Definition of Done

  • bun run check passes (0 errors)
  • bun run test passes
  • No @blogic-template/ or blogic-template-ts strings in synced project files, except approved exceptions in references/substitution-rules.md
  • .template-version file updated to new version
  • All plan tasks marked completed
  • Plan file exists in .sisyphus/plans/

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.74%
按下载量换算84

Claude

28.04%
按下载量换算68

Cursor

18.97%
按下载量换算46

Gemini CLI

9.25%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills