AGENT SKILL

setup-nook

Set up a Nook workspace after nook init: read the disk, ask what it cannot settle, write the keys of each feature in nook.yml (areas, jira or github, wiki) and the map in CLAUDE.md, and move an old nook.yml to the new form. Use on setup, a new feature, an old key, or a changed repo or check.

License 许可
MIT
所属仓库
lamtran8401/nook
最近更新
2026-10-27
Stars
★ 0
Forks
0

01 前言 Front Matter

name
setup-nook
description
Set up a Nook workspace after nook init: read the disk, ask what it cannot settle, write the keys of each feature in nook.yml (areas, jira or github, wiki) and the map in CLAUDE.md, and move an old nook.yml to the new form. Use on setup, a new feature, an old key, or a changed repo or check.
allowed-tools
Bash(nook *), Bash(git *), Bash(ls *), Bash(cat *), Read, Glob, Grep, Edit, Write
argument-hint
[what changed]
disable-model-invocation
true

03 SKILL.md 正文

Goal: this folder becomes a workspace that an agent can work in with no guess, for every feature that the owner wants. nook init wrote the first line of nook.yml, the Nook block and the rules. You write the keys with the owner; step 8 makes the folders of each feature. Run it again when the owner wants a new feature, or when nook doctor names an old key.

Order

  1. Run nook doctor and nook config. If the folder is not a workspace, stop and say to run nook init first. Each gap of the doctor is a thing that this run must close.

  2. Read the disk before you ask anything: nook.yml, CLAUDE.md, the git repos below (remote, default branch), build files, scripts, CI files, .env.example, the folders of docs or notes.

  3. Write down what the disk settled: each repo as a candidate area with its kind (frontend, backend, docs, data, tool), its checks (the lint, test and build scripts that exist), its test command with {files}, its install command from the lockfile.

  4. Ask the owner, in rounds, only what the disk cannot settle. The usual questions: which candidates are areas (an area is guarded: its files change only through an item in executing, so a repo that you edit by hand stays out); the kind of an area the disk does not show; a check that you could not find; the tracker (a Jira site, a GitHub repo, or none); the secret files; if the owner wants the wiki. Recommended answers first.

  5. Write only what differs from the defaults into nook.yml. Keep every line the owner wrote. The keys:

    Key What to write
    areas a map by name: api: { kind: backend }; path only when the folder is not the name
    defaults the checks, test and install that each area of one kind shares, such as backend: { checks: [npm test] }
    jira, github the source: { site: shop.atlassian.net } or { repo: acme/shop }, then the map of its fields
    wiki the key alone; the shelves business and tech are fixed
    secrets the paths of secret files, never a value
    commands allow, ask and deny lists, such as deny: [rm -rf]

    An area value wins over defaults.<kind>. Write a check in the area only when it differs. For a tracker, ask the owner for one real ticket of each team, then run nook tracker fields <ticket>. It lists each field with its id, its name and the start of its value. Map each use to its field id (Jira) or its heading (GitHub), such as acceptance-criteria: customfield_10095. A team with other fields gets a map under projects:. Then run nook tracker login.

  6. When the doctor names an old key, such as engineering: or wiki.shelves, write the file again in the new form that the doctor gives. Show the owner the new file first, and write it only after the yes. Keep each comment that still holds.

  7. Write the map of the folder into CLAUDE.md, outside the Nook block: what each top folder is for, the areas, and the conventions that the owner named. Short, in plain words.

  8. Seed the rule of each area: .claude/rules/area-<name>.md, with paths: ["<path of the area>/**"] in its front matter. Write one line for each convention that the disk shows: where the code of each kind goes, where the tests live and how they are named, the lint config, the steps of the CI. Copy each line of an AGENTS.md or CONTRIBUTING.md of the repo: Claude Code never loads an AGENTS.md inside a nested repo. Show each file, let the owner check each line, and write it only after the yes. The rule is the owner's: nook init never writes it.

  9. Run nook init --update: it makes the folders of each feature (works/, todo/, docs/adr/, the two shelves of the wiki) and moves the folders of an older Nook. Then run nook doctor and nook config. Report: what the disk settled, what the owner decided, what you wrote, and every gap that the doctor still lists. A gap that is left is not done: say why.

With an argument

/setup-nook a new repo projects/billing: do steps 2 to 9 for that change only. Add one area, change one check. Move nothing else.

Gotchas

  • Never ask what the disk answers: a test script in package.json is the test check.
  • A folder that holds two workspaces that must stay apart (company and personal) gets no features.
  • The Nook block in CLAUDE.md is not yours. Write above or below it.
  • A check that you did not run is a guess. Run each one once in its area, or mark it "not run".
  • Do not write a secret value anywhere. The secrets list holds paths only.
  • nook config shows each value and where it comes from. Read it before you write a value that is already the default.

04 同仓库更多 Skills

lamtran8401
lamtran8401/nook

yolo

Run an item alone from its state to the owner's accept: the lead runs the phases, records each guess, passes the plan gate with proceed, and stops at a stop rule. Use when the owner types /yolo with an id, a prompt, or nothing.

★ 0
lamtran8401
lamtran8401/nook

write-walkthrough

Write walkthrough.md, the explanation of finished work: what works now in plain words, the changed files, where to start reading, the key code, the met criteria, how to try it, the risks. It is the source of the Walkthrough tab of the web app. Use after /qa, or for a question about the code.

★ 0
lamtran8401
lamtran8401/nook

wiki-tidy

Find what is wrong in the wiki: broken links, pages with no index line, lines too near the code, stale epic pages, topics with no source, two pages on one topic, adjectives with no example. Fix the mechanical part after one yes; list the rest. Use when the owner says tidy the wiki, or after many pages changed.

★ 0
lamtran8401
lamtran8401/nook

wiki-merge

Merge related wiki pages into one complete page: the pages of the features of one process or epic become one page with the flow from end to end. The old pages move to the archive after the owner's yes, and their links point at the new page. Use when the owner says merge these pages, or when wiki-tidy finds pages on one topic.

★ 0
lamtran8401
lamtran8401/nook

wiki-ask

Answer a question from the wiki: the index first, then only the pages whose line matches, an answer in a few lines with a link to each page. Use when the owner asks what the wiki says, or asks why or how about a known topic. Not to add a page: wiki-add.

★ 0
lamtran8401
lamtran8401/nook

wiki-add

Keep the lesson of a source in the wiki: a page in the shelf business/ or tech/ with its main points, a real example for each, the gotchas and the link of the source; written after the owner's yes. Use when the owner says add this to the wiki, keep this, or gives a PRD, a ticket, notes or an article to keep.

★ 0