firststone

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Lay the first stone of a project: the Home Repo its agent sessions start from, and the pointers to its app repos. Talk to the user in their language. The development flow belongs to Matt Pocock's skills (
/ask-matt
); a Home Repo only carries the context that flow runs in.
为项目落下第一块基石:Home Repo 是 Agent 会话的起点,并包含指向其 App Repo 的指针。使用用户的语言与用户交流。开发流程由 Matt Pocock 的 skills(
/ask-matt
)负责;Home Repo 只承载该流程运行所需的上下文。

Vocabulary

术语表

  • Personal Home Repo:
    ~/code/personal/home
    , private, the user's alone. Points at every personal project; holds nothing about work except
    work-clones.md
    , a list of Team Home Repo URLs read only by
    setup.mjs
    .
  • Team Home Repo:
    ~/code/work/<client>/<project>/home
    , one per work project, shared with the colleagues on it. Holds the project's tracker, glossary, ADRs, team, constraints and meeting notes.
  • App repo: a repo holding code. Personal:
    ~/code/personal/<name>
    . Work:
    ~/code/work/<client>/<project>/<name>
    . Firststone writes no file in an app repo: checks, hooks and CI arrive later through
    /retro
    .
  • Open step: work left to a person, because a CLI, a permission or a fact is missing. Write each with the direct link, the clicks to make and any text to paste. On a host you do not know, say the path is unknown and ask, rather than guess its menus.
  • Setup checklist: the open steps of one run, one line each. It lives in a setup issue of the Home Repo; when no issue can be created (no CLI access, or an "Other" tracker) it lives in
    docs/agents/setup-checklist.md
    and is also printed in chat.
Names in paths are slugs: lowercase, hyphenated (
Acme Corp
→
acme-corp
).
  • Personal Home Repo:位于
    ~/code/personal/home
    ,设为私有,仅供用户本人使用。它指向每个个人项目;除
    work-clones.md
    外,不包含任何工作项目内容。
    work-clones.md
    是一个 Team Home Repo URL 列表,仅由
    setup.mjs
    读取。
  • Team Home Repo:位于
    ~/code/work/<client>/<project>/home
    ,每个工作项目一个,与参与项目的同事共享。它保存项目的 tracker、术语表、ADR、团队信息、约束条件和会议记录。
  • App Repo:存放代码的仓库。个人项目:
    ~/code/personal/<name>
    ;工作项目:
    ~/code/work/<client>/<project>/<name>
    。Firststone 不会在 App Repo 中写入任何文件:检查项、hooks 和 CI 之后通过
    /retro
    加入。
  • Open step:因缺少 CLI、权限或必要信息而留给人员处理的工作。每一步都要写明直接链接、需要执行点击操作以及需要粘贴的文本。如果对某个主机不了解,应说明路径未知并询问用户,而不是猜测其菜单位置。
  • Setup checklist:一次运行中的所有 Open step,每项占一行。它保存在 Home Repo 的设置 issue 中;如果无法创建 issue(没有 CLI 访问权限,或 tracker 为“Other”),则保存在
    docs/agents/setup-checklist.md
    中,同时也输出到聊天中。
路径中的名称使用 slug:小写并用连字符分隔(
Acme Corp
→
acme-corp
)。

0. Choose the case

0. 选择场景

Look before asking: whether
~/code/personal/home
exists, which Team Home Repos exist under
~/code/work/
, and what the user asked for.
CaseWhen
Personal Home Repo
~/code/personal/home
is missing. Run it first, then the case the user asked for.
Personal projecta personal repo has no pointer in the Personal Home Repo.
Work projecta new work project: its Team Home Repo does not exist.
App repoa new app repo for a work project whose Team Home Repo exists.
A rerun is a case whose Home Repo already holds an
AGENTS.md
, on disk or on its remote (clone it): read the answers from its files and its setup checklist, ask only what is still unknown, do what the unchecked lines now allow, and tick them.
提问之前先检查:
~/code/personal/home
是否存在、
~/code/work/
下有哪些 Team Home Repo,以及用户提出了什么需求。
场景适用情况
Personal Home Repo
~/code/personal/home
不存在。先执行此场景,然后执行用户要求的场景。
Personal project某个个人仓库在 Personal Home Repo 中没有指针。
Work project新的工作项目:其 Team Home Repo 尚不存在。
App repo工作项目的 Team Home Repo 已存在,但需要为该项目新建 App Repo。
如果某个 Home Repo 已经包含
AGENTS.md
(无论位于磁盘上还是其远端;必要时先 clone),则本次属于重新运行:从其文件和设置清单中读取已有答案,只询问仍然未知的信息,执行当前未勾选行所允许的操作,然后勾选这些行。

1. Interview

1. 访谈

Find the facts yourself before asking: CLI access for the hosts involved (
gh auth status
,
glab auth status
), each existing app repo's remote and default branch, the coding agents in use from the agent folders on disk (
.claude/
,
.agents/
,
.codex/
). Then ask the rest in batches, each question with a recommended answer.
  • Personal Home Repo: GitHub owner (the repo is
    <owner>/home
    , private); the coding agents to install skills for.
  • Personal project: name, URL, a few words on what it is, its Granola folder if it has one.
  • Work project:
    • client and project names; language of the project docs (default: the conversation's);
    • host of the Team Home Repo, GitHub or GitLab, and the owner or group. Another host only when the client forbids keeping project material outside its infrastructure;
    • tracker: the Team Home Repo's Issues; "Other" (Jira, Azure Boards…) when the client imposes one;
    • app repos known so far: name, URL, owner (team or client), a few words on each;
    • members (name, tracker username, starting areas), which member the user is; client contacts (name, role, what to ask them). Nothing more personal than that;
    • the client's review rule, if any;
    • the Granola folder name for the project's meetings (default: the project name).
  • App repo: name, URL, owner (team or client), a few words on it.
Done when every item is answered or the user has deferred it as an open step.
先自行查找相关事实:各主机的 CLI 访问权限(
gh auth status
、
glab auth status
)、每个现有 App Repo 的远端和默认分支,以及通过磁盘上的 Agent 文件夹(
.claude/
、
.agents/
、
.codex/
)判断正在使用的编码 Agent。然后将剩余问题分批提出,每个问题都附上建议答案。
  • Personal Home Repo:GitHub owner(仓库为
    <owner>/home
    ,设为私有);需要为其安装 skills 的编码 Agent。
  • Personal project:名称、URL、项目的简要说明;如果有 Granola 文件夹,还需要其名称。
  • Work project:
    • 客户(client)和项目名称;项目文档语言(默认使用当前对话语言);
    • Team Home Repo 的托管平台,即 GitHub 或 GitLab,以及 owner 或群组。只有当客户禁止将项目材料保留在其基础设施之外时,才选择其他主机;
    • tracker:使用 Team Home Repo 的 Issues;当客户强制要求使用其他系统时,选择“Other”(Jira、Azure Boards 等);
    • 目前已知的 App Repo:名称、URL、owner(团队或客户)以及每个仓库的简要说明;
    • 成员信息(姓名、tracker 用户名、初始负责领域),以及用户是哪位成员;客户联系人信息(姓名、角色、需要向其咨询的事项)。不得记录超出这些范围的个人信息;
    • 客户方的审查规则(如果有);
    • 用于保存项目会议的 Granola 文件夹名称(默认使用项目名称)。
  • App repo:名称、URL、owner(团队或客户)以及简要说明。
完成条件:每个项目都已有答案,或者用户已将其推迟为 Open step。

2. Plan

2. 计划

Show one plan: every folder and file to write, every remote operation (repo creation, push, branch protection, issue), and the open steps already known, blocking ones first. Creating a repo without CLI access blocks: right after confirmation give the link and the clicks, wait for the URL, then wire it with
git remote add origin <url>
and a plain push.
The confirmation authorises the Git operations in the plan: commits and pushes to
main
of the Home Repos. A Home Repo's
main
stays unprotected: agents write glossary, ADRs and meeting notes to it during sessions.
Done when the user confirms. Until then nothing in the plan is executed.
展示一份统一计划,包括要写入的每个文件夹和文件、每项远程操作(创建仓库、推送、分支保护、创建 issue),以及已知的 Open step,并优先列出阻塞项。如果没有 CLI 访问权限,创建仓库这一项会被阻塞:用户确认后,立即提供链接和点击步骤,等待 URL,然后通过
git remote add origin <url>
接入,并执行普通 push。
用户的确认即授权执行计划中的 Git 操作:向 Home Repos 的
main
进行 commit 和 push。Home Repo 的
main
保持不启用保护:Agent 会在会话期间向其中写入术语表、ADR 和会议记录。
完成条件:用户已确认。在此之前,不执行计划中的任何操作。

3. Write

3. 写入

Every file written has content.
GLOSSARY.md
,
docs/adr/
and
docs/meetings/
are born later with their first real entry, written by the skill or person that owns it. Every Home Repo gets
CLAUDE.md
holding the single line
@AGENTS.md
.
Personal Home Repo, at
~/code/personal/home
:
  • AGENTS.md
    from template-personal-agents.md, with a pointer for each personal repo the user names now;
  • setup.mjs
    from template-setup.mjs, with
    AGENTS
    set to the coding agents from the interview; from then on it is the user's file;
  • .gitignore
    listing
    local.md
    .
Create the private remote following the host file, commit, push
main
, then run
node setup.mjs
once.
Personal project: add its pointer to the Personal Home Repo's
AGENTS.md
, commit and push.
Work project, at
~/code/work/<client>/<project>/home
, remote
<owner>/<project>-home
, in the project docs language:
  • AGENTS.md
    from template-team-agents.md;
  • docs/agents/team.md
    from template-team.md;
  • docs/agents/constraints.md
    from template-constraints.md;
  • .gitignore
    listing
    local.md
    and
    docs/meetings/transcripts/
    .
Create the private remote following the host file, commit, push
main
. Then add the project's line to
work-clones.md
in the Personal Home Repo (format in
template-personal-agents.md
), commit and push there.
For each app repo of the project, then for the App repo case: add its pointer to the Team Home Repo's
AGENTS.md
, and protect its
main
following the host file: pull request required, zero required approvals. On a client-owned repo the client's rule wins: where the client has none, propose this one as an open step addressed to the client contact. A new app repo is created through the host file before its pointer is written.
Host files: host-github.md, host-gitlab.md, host-other.md.
Done when every Home Repo touched has its commit on the remote
main
.
所有写入的文件都必须包含实际内容。
GLOSSARY.md
、
docs/adr/
和
docs/meetings/
要等首次出现真实条目时才创建,由负责它们的 skill 或人员编写。每个 Home Repo 都包含
CLAUDE.md
,其中只有一行
@AGENTS.md
。
Personal Home Repo,位于
~/code/personal/home
:
  • 根据 template-personal-agents.md 创建
    AGENTS.md
    ,并为用户当前提到的每个个人仓库添加指针;
  • 根据 template-setup.mjs 创建
    setup.mjs
    ,并将
    AGENTS
    设置为访谈中确认的编码 Agent;此后该文件由用户维护;
  • 创建
    .gitignore
    ,列出
    local.md
    。
按照主机文件创建私有远端仓库,commit 并 push
main
,然后运行一次
node setup.mjs
。
Personal project:将其指针添加到 Personal Home Repo 的
AGENTS.md
,然后 commit 并 push。
Work project,位于
~/code/work/<client>/<project>/home
,远端仓库为
<owner>/<project>-home
,并使用项目文档语言:
  • 根据 template-team-agents.md 创建
    AGENTS.md
    ;
  • 根据 template-team.md 创建
    docs/agents/team.md
    ;
  • 根据 template-constraints.md 创建
    docs/agents/constraints.md
    ;
  • 创建
    .gitignore
    ,列出
    local.md
    和
    docs/meetings/transcripts/
    。
按照主机文件创建私有远端仓库,commit 并 push
main
。然后将项目对应的一行添加到 Personal Home Repo 的
work-clones.md
(格式见
template-personal-agents.md
),在该仓库中 commit 并 push。
先为项目中的每个 App Repo 添加指针,然后再处理 App Repo 场景:将指针添加到 Team Home Repo 的
AGENTS.md
,并按照主机文件保护其
main
:要求使用 pull request,所需 approvals 数为 0。如果仓库归客户所有,则以客户的规则为准;如果客户没有相关规则,则将此规则作为一项 Open step 提出,并指派给客户联系人。新 App Repo 必须先按照主机文件创建,然后才能写入指针。
主机文件:host-github.md、host-gitlab.md、host-other.md。
完成条件:每个涉及到的 Home Repo 都有提交记录,并且内容已推送到远端
main
。

4. Close

4. 收尾

Write the setup checklist, assigned to the user when it is an issue. For a new Home Repo, one line is always present: run
/setup-matt-pocock-skills
from it. In a Team Home Repo it records the tracker; in the Personal Home Repo the tracker is "the Issues of the app repo the work belongs to". With an "Other" tracker, add a line for the paragraph that skill will ask for, and help the user draft it: how a ticket is created and assigned, and how the five triage states are expressed.
Then report what was created and where the setup checklist is, and end with the session to open next:
/setup-matt-pocock-skills
in the new Home Repo, then
/ask-matt
.
Done when the setup checklist exists and every open step is on it.
写入设置清单;如果设置清单采用 issue 形式,则将其指派给用户。对于新的 Home Repo,清单中始终要有一行:从该 Home Repo 运行
/setup-matt-pocock-skills
。在 Team Home Repo 中,清单需要记录 tracker;在 Personal Home Repo 中,tracker 为“工作所属 App Repo 的 Issues”。如果使用“Other”tracker,则添加一行,用于记录该 skill 后续会询问的那一段内容,并协助用户起草:如何创建和分配 ticket,以及如何表示五种 triage 状态。
然后报告创建了哪些内容,以及设置清单的位置。最后结束会话时,给出接下来应打开的会话:先在新 Home Repo 中运行
/setup-matt-pocock-skills
,然后运行
/ask-matt
。
完成条件:设置清单已经存在,并且每个 Open step 都已记录在其中。