/atk:convention [--audit|--init|--sync|--scaffold] [--suggest] [--scope <paths>] [--lang <code>] [--out <path>]from atk
Extracts, records, and enforces team coding conventions from codebase and git history. Maps rules to enforcement tools, audits compliance, and drafts collaboration files like CONTRIBUTING.md, PR templates, and CODEOWNERS.
Ships in atk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
atk:convention)Writes down the rules a team already follows and enforces. It can also suggest rules from published standards, and each one stays a proposal until the Tech Lead adopts it; nothing is imported on the team's behalf. A rule that no tool enforces and no reviewer checks is a wish; this skill labels it as one.
Handles: deriving conventions from the existing codebase and git history, recording them, mapping each rule to the tool that enforces it, auditing whether the code still matches the document, suggesting rules from the published standards for the detected stack as proposals, and offering to draft the collaboration files the project does not have yet.
Does NOT handle: reviewing a specific change (atk:review), configuring CI pipelines beyond the
lint and format layer, or choosing the tech stack.
Tech Lead owns the document and is the approver. Every Dev is bound by it. A rule added without the
team agreeing is a proposal, marked as such. See shared/team-roles.md.
/atk:convention # Derive from the codebase and write or update the document
/atk:convention --audit # Report where the code and the document disagree; writes no project file
/atk:convention --init # Bootstrap a document for a project with no conventions yet
/atk:convention --sync # Update the document, and offer the step 6 files whose source moved
/atk:convention --scaffold # Offer the collaboration files the project lacks; write only the ones picked
/atk:convention --suggest # Also propose rules from published standards for the detected stack
/atk:convention --scope src/api # Limit derivation to given paths
/atk:convention --lang vi # Write the document and the report in Vietnamese
/atk:convention --out <path> # Override the conventions document, or the standards set's directory; never step 6
[1. Read existing] -> [2. Detect stack, derive] -> [3. Classify] -> [4. Map to tooling]
-> [5. Write] -> [6. Offer what is missing]
Before step 1, read .atk/overrides/convention.md when it exists, per rule 7 of shared/team-roles.md.
Then, before anything else, create this run's trace, <docs root>/derived/traces/convention/<run-id>.md:
read the kit's shared/run-trace.md and do what it says before the file, at each step, and at the close.
Read .atk/profile.md first, since its Docs section opens the resolution below. This skill is
Required-soft in the three-group table of shared/project-profile.md: a missing profile does not
stop the run, and the artifact says none was found.
Resolve where this project keeps its conventions, per Where the rules live in
shared/review-checklist.md, and read what is there. A project that keeps a standards directory
rather than one file has its conventions across all of those documents, so read the set, not the
first file in it.
Read the convention gaps that reviews have already reported, from the Convention gaps section of
the review reports under the reviews path in shared/artifact-paths.md. That section is where
atk:review puts a rule it wanted and the project has not recorded, and this is the step that
carries it across, per Keeping them in step in shared/review-checklist.md. Each one enters step 3
as a candidate like any other rule, with the review that raised it as its source, and is offered to
the Tech Lead rather than written in as agreed. Where the reports are gone, or the project keeps
them outside version control, nothing is lost here that the next review will not raise again.
Read CONTRIBUTING.md, CLAUDE.md, AGENTS.md, .editorconfig, linter and formatter configs,
CODEOWNERS, and PR templates as well, and record which of them exist: a convention nobody read is
reported as absent rather than as followed. Of these, the three that step 6 offers are
CONTRIBUTING.md, the pull request template, and CODEOWNERS; resolve whether each exists through
shared/host-file-locations.md, which lists every location its host reads. The rest are read here
and never drafted. Do not duplicate what a config file already states: link to it. A rule the project has already written is not
rewritten here either; it is classified in step 3 and cited where it lives.
Name each language and technology the repository is built with, with the file that proves it and
its share, per references/stack-standards.md, then derive the rules for each of them and for the
repository as a whole. Sample the code and recent git history to find the real patterns: directory
layout, naming, error handling, logging, test file placement, import order, commit message shape,
branch names, PR size and review turnaround. Record the dominant pattern and how dominant it is,
for example "23 of 26 handlers", counted over the files of the technology the rule belongs to, and
per layer where the profile names several, since one language often does two jobs. The code sampling
goes to an agent, which returns each pattern with its count and path:line examples, per
Reading wide, through an agent in shared/host-capabilities.md; the git history and pull requests
stay with the session, since that agent has no shell.
Three buckets, and each rule must land in one:
| Bucket | Meaning |
|---|---|
ENFORCED | A tool fails the build or the hook blocks it |
REVIEWED | A human checks it during review, and it is on the review checklist |
ASPIRATIONAL | Nobody checks it; either automate it, move it to the checklist, or drop it |
Write each rule in the record format from shared/review-checklist.md: an id, the rule sentence,
the bucket, the enforcing tool, a default review severity, and the source it was derived from.
atk:review reads those rows and cites the ID, so the format is a contract, not a preference.
For each REVIEWED or ASPIRATIONAL rule worth keeping, name the tool that could enforce it and
the config change needed. Propose; do not silently install tooling or rewrite CI.
Update the document resolved in step 1, in place. Where step 1 resolved nothing, write the standards
set in references/stack-standards.md: one document per technology and an index. The review
checklist section holds the REVIEWED rules only, per shared/review-checklist.md; an ENFORCED
rule is already checked by a tool and repeating it wastes a reviewer's attention, and
ASPIRATIONAL rules are listed apart and marked unchecked.
Where the project already keeps conventions, its shape wins, under the rule of that name in
shared/review-checklist.md. Write into the set as it is arranged, put the checklist section in its
index document, and leave the rest of the set alone. Converting a team's standards directory into
this skill's default layout is its own piece of work with its own approver, never a side effect of
recording one rule.
Tell the user which document now carries the checklist, so the Docs section of .atk/profile.md
records it and the next skill resolves it without guessing.
Where the project has a CONTRIBUTING.md, keep the human contribution flow there and link to the
conventions rather than copying them.
Step 1 already knows which of CONTRIBUTING.md, the pull request template, and CODEOWNERS this
project lacks. Say which are missing, offer a draft of each, and write only the ones the user picks;
picking none is an answer and ends the step. A file the project already has is left alone on every
run but --sync, which shows the change its moved source would make and writes only what is picked.
references/collaboration-files.md holds the rest: what each file carries, the per-repository
question on a project with members, what a drafted CODEOWNERS needs before it is offered, why an
owner never comes from git history, what the step never does, and how a written file is approved.
--auditRuns steps 1 to 4 and stops. It writes nothing into the project but its run trace: the report comes back in the
session, and goes to a file only under --out, because an audit records one moment while the
conventions document is the thing meant to last.
It reports six things, in this order:
path:line, and the counter-evidence as a count over a population, such as "69 of 568 files".
Two documents stating the same rule differently are one finding carrying both sources, and which
of them is right is the Tech Lead's call under rule 3 of shared/team-roles.md.ASPIRATIONAL rule with the tool that could enforce it, or none where there is none, and
every checklist rule no recent review has cited, per Keeping them in step in
shared/review-checklist.md.--sync.checked date, each line
whose checked is empty with the condition its note names, and each proposal nobody has approved,
per references/standard-sources.md. A proposal is cited by repository, path, and fetch date.Findings cite path:line, never CONV-NNN. An ID is assigned when a rule is written into the
document, and one invented during an audit collides with the next write.
--init and --syncBoth run the whole workflow. They differ in what step 1 expects to find and what step 5 may touch.
--init is for a project the step 1 resolution found nothing for. It still reads the configs and
derives from the code, and every rule it writes is a proposal until the Tech Lead agrees, per the
Roles section above.
--sync is for a document that has fallen behind the code. It changes only the rules the code
contradicts and the buckets that moved, and leaves the wording of every rule the code still matches
exactly as it is. It is also the one mode where step 6 looks at a file the project already has: a
template whose checklist no longer matches the enforcement table, or a CODEOWNERS whose names the
Team section has moved past, is offered as the change it would make. --init and a plain run offer
the missing files only. A disagreement it cannot settle becomes an open question carrying the name of
whoever can answer it, never a silent rewrite. A source that moved since its proposals were fetched
is shown the same way, as the change it would make; one that is gone becomes such a question.
--scaffoldRuns step 1 and step 6 and nothing else, and offers the missing files only; bringing a file that
already exists back in step with its source is --sync. It is for a team that has its conventions
written already and wants the files that carry them into daily work, without a full derivation pass
rewriting the document on the way.
The drafts are built from what step 1 read. A conventions document written by hand carries rules with no bucket against them, and this flag does not classify them, because that is step 3 and it is the Tech Lead's output. Such a rule gets no checkbox: list them in the template as a link to the document and say how many were left unclassified, or run the skill without the flag to have them classified first.
Where the project has recorded no rules at all, say so and draft the template with the baseline
items alone, per references/collaboration-files.md. Where nothing is missing, say that too; a run
that found all three present has an answer rather than no output.
--suggestRuns the whole workflow, and between step 3 and step 4 looks up each technology step 2 named in
references/standard-sources.tsv, plus any source the override adds, under the rules in
references/standard-sources.md. It fetches each matching source sparsely, reads what its path
holds, and draws candidate rules the code does not already settle, each shown with its link and
with whether the code agrees, contradicts it, or is silent. Nothing is written before the user
picks. The picked ones go into the proposals section of the conventions
document, with source as <repo>/<path> fetched <date> per shared/review-checklist.md, never
into the review checklist. A source skipped for an empty checked, one that could not be fetched,
and a technology with no source are each named in the report; the part derived from the code comes
out the same either way. Beside --audit it writes nothing but the run trace and lists the candidates in the report;
--scaffold runs no step 2, so it ignores the flag and says so.
Written to the document resolved per shared/review-checklist.md. A project with nothing written
yet gets docs/standards/ under shared/artifact-paths.md: a <tech>.md per detected technology,
and a <layer>/<tech>.md where its rules differ between the profile's layers, carrying its code
layout and naming, error handling and logging, and testing rules, and an index.md carrying the stack with its evidence, the branch and commit rules, the review checklist in
the shared/review-checklist.md record format, and the enforcement table mapping every rule to its
bucket and tool. references/stack-standards.md holds the shape.
For a project that already keeps conventions, the same content goes into the shape it already uses, and the two sections it will not have are the review checklist and the enforcement table. Those are the addition; the rest is classification of what is already written.
The files the user picked in step 6 go where their host reads them, per
shared/host-file-locations.md, and not into the docs tree shared/artifact-paths.md governs. They
are the project's own collaboration files rather than artifacts of this kit: none carries the front
matter block, and they are committed like the project's linter config.
Putting the conventions document where the team can see it is atk:git, which follows the artifact section of
shared/finalize-steps.md: the branch, the commit, and the judgement about whether this one belongs
in a pull request for its approver to read. Whether it is committed at all is the persistence group
it falls into, per shared/artifact-paths.md.
Follow shared/ticket-adapters.md. Automation gaps found in step 4 become issues, one per rule,
only when the user asks.
ENFORCED, REVIEWED, or ASPIRATIONAL.--audit changed no file but the run trace, cited path:line or a proposal's repository, path, and fetch date
rather than assigning an ID, and named every source gone, changed, or unconfirmed.--sync left the wording of every rule the code still matches untouched, showed a moved
source as a change to pick, and turned a gone source into an open question.REVIEWED rules, each with an ID and a default severity.--sync, where the
change was shown and picked before anything was written.CODEOWNERS was offered only where the Team section named owners with host
identifiers, and no owner came from git history or from commit metadata.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lamngockhuong/aiteamkit --plugin atk25 skills in this plugin
/breakdownBreak an epic or a design document into owned, sequenced tasks: one deliverable each, an owner, a dependency order, the parallel lanes that avoid two people editing the same file, and a definition of done per task. Use before a sprint starts, when work has to be shared across several developers, or when a piece of work needs owners and parallel lanes. Work that stays with one person is planned with `atk:plan` instead, however many days it takes. Triggers on: "break down", "breakdown", "split this epic", "task list", "WBS", "who does what", "assign tasks", "/atk:breakdown".
/catchupSummarise an epic or a pull request for someone not in the conversation that produced it: what the work is and for whom, why now, scope, what it touches and where in the code, who decides, unfamiliar terms, and where it is easy to go wrong. For an epic, also the understanding check the developer answers before coding. Use when a person joins work in flight, picks up an epic they did not write, or reviews a pull request in an unfamiliar area; what merged work now does is `atk:spec`. Also explains in plain words, finding by finding or section by section, a document a person was handed, a record the kit wrote or any other, such as a vendor's penetration test report; turning one into requirements is `atk:intake`. Triggers on: "catchup", "summarize issue", "summarize PR", "explain this document", "explain these findings simply", "/atk:catchup".
/design-docWrite the technical design document a team reviews before coding, plus its ADR: current state, options with trade-offs, chosen approach, data and API changes, migration, rollback, risks, open questions, and who signs off. Use before code that touches a schema, a public contract, a shared module, or several services. `--spike` first investigates, time-boxed, a question the design cannot choose without; `--challenge` puts one agent per signing role on the draft; `--answer` records answers to its open questions. Triggers on: "design doc", "technical design", "tech design", "ADR", "architecture decision", "detail design", "how should we build this", "technical spike", "spike this", "pressure-test this design", "finish the draft design", "record the design answers", "/atk:design-doc".
/estimateEstimate how many points and how many hours a task, a feature, or a screen takes: size each item with a stated basis, mark the confidence, and add the risk buffer as a visible line, so the numbers can be argued with in planning. Use for story points, hour or man-day estimates, and re-estimation after scope change. Triggers on: "estimate", "estimation", "story point", "man-day", "how long will this take", "/atk:estimate".
/fixFix a defect the way a team reviewer will accept: capture the failure verbatim, prove the cause before changing a line, check that the current behaviour is not a decision somebody made on purpose, make the smallest change that removes the cause, verify it by layer, stop after three ruled-out hypotheses with a named person rather than guessing, call the team review on its own change and fix what it blocks on, and write the report that shows what was checked and what was not. Use for a bug report, a test or CI check that passed before and now fails for no clear reason, a broken endpoint or screen, or an investigation that has to end in an explanation rather than a guess; with --findings, to go through an atk:review's findings with their author, answer each, and fix the chosen ones on the pull request's branch. Triggers on: "fix bug", "debug", "bug", "this test started failing", "why is this test failing", "flaky test", "go through the review findings", "/atk:fix".
/gitCarry a finished piece of work into version control: read what changed, stage it after scanning for anything that must never be committed, split it into commits that can be reverted one at a time, branch and push on consent, open the pull request with the artifact as its body, and merge only when a person asks for that merge and the pull request is ready. Also repairs a branch, through rebase, conflict resolution and fixup, and drives stacked pull requests. Use after a skill or a person has finished and verified work, when a branch has fallen behind or a conflict is in the way, or when a stack of dependent pull requests needs moving. Triggers on: "commit", "commit this", "push", "open a PR", "pull request", "merge the PR", "rebase", "resolve the conflict", "stacked PRs", "branch", "merge PR", "/atk:git".
Other plugins' skills for the same job