explain-flow
Use when the owner wants a flow of this codebase explained as a story ("how does X run", "walk me through the flow of Y"), with every step checked against the code.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 18
- Forks
- 3
01 前言 Front Matter
- name
- explain-flow
- description
- Use when the owner wants a flow of this codebase explained as a story ("how does X run", "walk me through the flow of Y"), with every step checked against the code.
02 资源文件 1
- 参考文档agents/openai.yaml241 B
03 SKILL.md 正文
Explain a flow as a checked story
ArchKeel measures the flow. You write only the words. Agent text is a claim, never a fact. Never write a status, a line number or a system name from memory. The tool gives them.
1. Get a snapshot
Run archkeel explore --root <root> --output <dir> --json. It writes <dir>/architecture.json.
Use a CLI that has story trace. Probe it with archkeel story trace --help. Use uvx archkeel
or uvx --from git+https://github.com/rapiddweller/archkeel archkeel when the probe fails.
2. Trace the candidate paths
archkeel story trace --from <function> --to <function> --snapshot <dir>/architecture.json --json
- Give qualified names, such as
shop.cli.main.main. Without--to, trace resolved calls to the farthest functions. With--to, the trace also searches paths with partial calls. - Read the top-level
pathsarray. A hop in each path isproven(a resolved call) orclaim(a partial call, with its seam). - Read
seamson each path (paths[].seams): an unresolved call is a gap. Name it in the story. Do not hide it. A path with no gaps has an emptyseamsarray. Check each call-site file and line in the source before you write its words. - Choose one path. Do not report an unlisted hop as proven. Keep a partial hop as
claim. Leave unresolved stepsunknownwithoutclaim. Setclaim: trueonly for a deliberate assertion between existing nodes whose transition it cannot verify; give its reason innote. A claim cannot create a missing node. External systems need the explicitexternalfield.
3. Write the story spec
Write a view spec with "schema_version": "1.2.0". Add a story with id, title and chapters.
List every step node in nodes. The snapshot digests may stay as the trace gives them: Studio
checks the story by node name and ignores them on a mismatch. For each step in steps:
node: a function from the trace.chapter,title,note(the story text) andquestion(for the architect): your words.external:{"system", "direction"}only when the owner needs it. The direction is your claim.
4. Check it, store it, show it
- Run
archkeel view check story.json --snapshot <dir>/architecture.json --json. - Read the result, not your spec. Report each
unknown,claimandmissingstep to the owner. - If a step is
missingorunknownfor no good reason, change the spec. Do not argue with the result. - Write the spec to
<root>/.archkeel/stories/<id>.story.jsonwith your own write tool. This stored story is reviewed repository documentation. Addcreated(UTC time),git_head(fromgit rev-parse HEAD),author_kind: "agent"andagent(your name). Do not edit anything else in the repository. - Tell the owner to open Studio (
exploreskill) and pick the story in the list. Studio reads the folder and checks the story again on the current snapshot. For a static page runarchkeel view show story.json --snapshot <dir>/architecture.json.
The spec file is author text, a claim. The owner reviews it like documentation, in a pull request.
Say only what view check measured. The verdict counts steps; it is not approval.
04 同仓库更多 Skills
assets
暂无简介
explore
Use when the owner wants to see the codebase map in the browser ("show me the architecture", "open the explorer", "start Studio"), or to stop or reuse a running ArchKeel Studio.
archkeel
Use when meeting a new or unknown codebase ("explain this codebase", "how does it start", "show me the flow of X"), defining or reviewing architecture, maintaining nested contracts, or checking an Archkeel repository before submitting code.
orders-domain
Use with the archkeel skill when reviewing or changing the orders service; supplies its domain invariants only.