setup-project

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Setup project

项目搭建

Drives the setup flows in flows user.mmd: workflow setup first, tech stack second.
Setup skills are just-in-time:
npx github:timschoch/skilly add <skill>
, then READ the installed SKILL.md and follow it directly (the session's skill list only loads at startup — no reload exists), then
npx github:timschoch/skilly remove <skill>
. This applies to EVERY skill named below — never invoke a copy installed elsewhere on the machine. Setup skills live in NO synced bundle: they would sit unused and pollute the context window.
驱动flows user.mmd中的搭建流程:先进行工作流搭建,再进行技术栈搭建。
搭建技能是即时使用的:执行
npx github:timschoch/skilly add <skill>
,然后阅读已安装的SKILL.md并直接按照说明操作(会话的技能列表仅在启动时加载——不存在重新加载机制),之后执行
npx github:timschoch/skilly remove <skill>
。这适用于下面提到的所有技能——切勿调用机器上其他位置安装的副本。搭建技能不包含在任何同步技能包中:否则它们会闲置不用,还会污染上下文窗口。

Workflow setup

工作流搭建

Ask which parts apply, then run the chosen skills in this order, finishing one before the next:
  1. Husky + lint-staged + Prettier pre-commit? →
    setup-pre-commit
    ; the repo's own stack → skip (nothing automated for it yet — add a sibling skill when one earns its place).
  2. GitHub scaffolding (conventional commits/branches)? →
    setup-repo
    — GitHub settings, commit/branch rules wired into the hooks just chosen,
    CLAUDE.md
    scaffold.
  3. Release automation? →
    setup-release-please
    — plus merge settings.
  4. Wayfinder? →
    setup-matt-pocock-skills
    — issue tracker, triage labels, domain-doc layout.
Remove the used setup skills, commit conventionally, push, and make sure a PR exists.
询问用户哪些部分适用,然后按以下顺序运行所选技能,完成一个再进行下一个:
  1. 是否需要Husky + lint-staged + Prettier pre-commit?→ 使用
    setup-pre-commit
    ;若仓库已有自身的配置栈→跳过(目前暂无自动化支持——等有成熟方案时再添加同级技能)。
  2. 是否需要GitHub脚手架(约定式提交/分支规范)?→ 使用
    setup-repo
    ——配置GitHub设置,将提交/分支规则接入刚才选择的钩子,生成
    CLAUDE.md
    脚手架。
  3. 是否需要发布自动化?→ 使用
    setup-release-please
    ——同时配置合并设置。
  4. 是否需要Wayfinder?→ 使用
    setup-matt-pocock-skills
    ——配置议题追踪器、分诊标签、领域文档布局。
移除已使用的搭建技能,按约定式提交规范提交代码,推送,并确保存在一个PR。

Tech stack

技术栈

  1. Propose Bundles from the catalog, let the user confirm:
    • every repo:
      workflow
    • a
      project-<x>
      bundle when one exists (it already includes its tech bundles)
    • otherwise the
      tech-*
      bundles matching the stack (check
      package.json
      / lockfiles)
    • marketing
      only where the repo produces marketing content
  2. npx github:timschoch/skilly add <bundle...>
    — installs, rules, commit, PR.
  3. Stack setup skills where the stack needs them (e.g.
    trigger-setup
    ): add, follow, remove.
  4. npx github:timschoch/skilly update
    — ends with its own commit.
  5. Read
    .agents/skills/audit-skilly-workflow/SKILL.md
    in full and follow it: the rules, hooks and gates just installed get checked against what the repo and the user's global files already say. Show the report path, stop; fix only what the user picks.
  1. 从目录中推荐技能包,让用户确认:
    • 每个仓库都包含:
      workflow
    • 若存在
      project-<x>
      技能包则使用(它已包含对应的技术技能包)
    • 否则使用与技术栈匹配的
      tech-*
      技能包(检查
      package.json
      / lockfiles)
    • 仅当仓库用于生成营销内容时使用
      marketing
      技能包
  2. 执行
    npx github:timschoch/skilly add <bundle...>
    ——完成安装、规则配置、提交和PR创建。
  3. 若技术栈需要对应的搭建技能(例如
    trigger-setup
    ):添加、按说明操作、移除。
  4. 执行
    npx github:timschoch/skilly update
    ——执行完成后会自动生成提交。
  5. 完整阅读
    .agents/skills/audit-skilly-workflow/SKILL.md
    并按照说明操作:将刚安装的规则、钩子和门禁与仓库及用户全局文件中已有的配置进行比对。展示报告路径后停止;仅修复用户指定的问题。

Validate

验证

After the PR merges:
gh workflow run skilly-sync.yml
, then
gh run watch
until green. Local auth tests on this Mac lie (the machine SSH key bypasses
$HOME
isolation).
PR合并后:执行
gh workflow run skilly-sync.yml
,然后运行
gh run watch
直到状态为绿色。在这台Mac上的本地认证测试结果不可靠(机器的SSH密钥会绕过
$HOME
隔离机制)。