Project knowledge

From toy-crane/claude-code-playbook-template · View interactive version

Project knowledge is an AI agent skill from the GitHub repository toy-crane/claude-code-playbook-template. Maintain a project's canonical terms and settled decisions that future work should reuse, and record follow-ups a session discovers but does not resolve. Use when project-specific terms are being clarified, when a choice that may constrain future work is being considered or settles, including during

How to use this skill

Skill file

Project Knowledge

Resolve unclear project terms and preserve settled decisions so future work uses

the same language and does not re-litigate the same trade-offs.

Resolve terms

Read GLOSSARY.md when it exists.

edge-case scenarios.

immediately using the glossary template.

Preserve decisions

When docs/decisions/README.md exists, read it and load only the subject files

relevant to the current work.

Record a project decision only when it is all of the following:

  1. Settled: the choice is no longer a proposal. The user confirmed the

outcome, or it was chosen under authority the user explicitly delegated for

this class of decision.

  1. Reusable: future work is likely to face the same question and should

reuse this answer unless its reconsideration conditions are met.

  1. Non-obvious: without its rationale, future work could reasonably reopen

the question or choose differently.

  1. A real trade-off: plausible alternatives existed, and preserving why

they were rejected prevents the same evaluation from recurring.

Require evidence that a choice was intentional before treating it as settled.

Implementation or lack of objection alone is insufficient.

For each qualifying decision, use the

decision contract template to create or

update its single subject file in docs/decisions/. Preserve only the context

future work needs to apply the decision without repeating the original analysis.

Keep the design entry current

Root DESIGN.md is where design work starts: the project's values, the shared

components in use, rejected UI patterns, and a map from each visible element to

the decision contract that owns it. Contracts stay the source of every rule;

DESIGN.md only points at them, so copy no rule text, rationale, or threshold

into it.

A screen contract decides how something looks or behaves on screen: color, text

role, spacing, icon, component, copy, loading, disabled, or error state, or

sheet, toast, or header behavior. Contracts about repository mechanics, data

ownership, review process, or deployment are not screen contracts and leave

DESIGN.md alone. A contract that sets UI review criteria may be a link target

for a rejected pattern but is not a map element.

When you create a screen contract, change which elements one covers, or add or

remove a UI pattern that a screen or UI review-criteria contract rejects,

update DESIGN.md in the same change using the

design entry template:

that an agent would otherwise write in UI code. Process alternatives, such as

enforcing a rule through lint, stay only in the contract.

screens reads DESIGN.md first. Put that line in AGENTS.md, creating the

file when it is missing, and also in CLAUDE.md when it exists and does not

already load AGENTS.md. Skip a file that already carries a line with that

meaning.

When DESIGN.md does not exist yet, create it at that moment:

current one, and list their rejected UI patterns.

shared component directory, naming each source path in its section. Omit a

section whose source does not exist.

After creation, leave the values and components sections to the work that

changes their named sources. When an existing DESIGN.md uses another layout,

add lines where it already keeps them instead of reformatting it. A project

with no screen contract has no DESIGN.md.

Record follow-ups

Record a follow-up when a workaround applied in this session is temporary and

its root cause stays open, or when an out-of-scope defect or suspected cause is

observed with evidence. Work that closed inside the session, a guess without

evidence, and a defect already fixed in the current change do not qualify.

Record each qualifying item at the moment of discovery, and choose where by who

must move next. An item must let a later session act without this

conversation. Reporting the discovery in conversation does not preserve it.

already settled: write it to its own docs/follow-ups/<slug>.md using the

follow-up template, naming the slug for the

symptom.

as a measurement that needs real use first: when AGENTS.md or CLAUDE.md

carries an ## Issue tracker section, create an issue through that section

and its linked convention instead of a file. Give it the template's five

facts plus the decision a person must make or the moment to act. When the

item has a date, set it with the convention's Due date method, and report

the issue's ID. A file

would wait for an agent sweep that cannot settle it; an issue reaches the

person who can.

unavailable, write the file as for the first case and say in your report

that the item went to a file, or lacks its date, and why.

A follow-up records an open question, not a settled decision, so it does not

enter GLOSSARY.md or a decision contract until its outcome settles on its own

terms. Delete the file when the work ships or the item is promoted into a spec

folder.

Protect project truth

decision contract, surface the mismatch instead of choosing silently. Code

shows current behavior, but not whether that behavior was intentional.

decision the code implies.

knowledge unchanged until the intent is explicitly clarified.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.