athenode-sdd/standard-setup/atn-apply
Claude Code and agent skill by athenode-sdd/standard-setup
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Use when a prepared specification (or subtree) should be planned, implemented, reviewed and committed leaf by leaf.
Install
npx vskill@latest install athenode-sdd/standard-setup/atn-applySemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as athenode-sdd/standard-setup/atn-apply.
Drive a specification subtree from prepared to completed: plan, implement and review its leaves one at a time in dependency order, complete the intermediate specifications as their subtrees finish, and finally complete the root, running the project's git workflow and code review at the hooks named below.
Arguments
$1: the root specification's id or (partial) title. Other skills invoke this skill with the id only, also under their--auto-apply.
Repositories
- The run's git repositories are the project root plus every repository path in the
## Sub-projectstable ofsettings/SETTINGS.md, kept only wheregit -C <path> rev-parse --show-toplevelsucceeds and deduplicated by that toplevel (a sub-project that is a plain package resolves to its enclosing repository). - Each repository follows the
gitflow.mdof the sub-project whose repository path is the longestpath/prefix of (or equal to) its path, else the rootsettings/gitflow.md. Every gitflow step runs independently in each repository; a repository whose git operations were stopped or aborted is skipped by every later gitflow step. - A leaf's files are derived from git; nothing is stored in Athenode. The leaf's baseline is the output of
git -C <repo> status --porcelainin every repository, taken before the leaf is implemented and kept in the run's context only. A leaf's files are the paths thatgit -C <repo> status --porcelainreports as changed or new compared with that baseline, made relative to the project root, plus the files outside every repository thatspec-implementerreports. Recompute the set after everyspec-implementerreturn (the first run and every retry or resume for review fixes), keeping the paths found earlier, since a commit takes them out of the status; a path already dirty at the baseline is not the leaf's. Each file belongs to the repository with the longest matching toplevel; files outside every repository are never staged. Wheneverspec-implementation-revieweris spawned or resumed, pass it each reviewed leaf's files, since the working tree may already be committed by then. - A leaf touched a repository when
git -C <repo> status --porcelain -- <its files there>reports one of them as changed. The repositories a leaf's plan predicts it will touch are those itsAffected sub-projectssection (specs_get_planwith the leaf id) maps to through the sub-project table. - The implemented-leaves list holds
{id, title}of every leaf implemented without aTEST FAILUREin this run; the code-review.md Rules subsections review it. - A leaf's review has settled when the leaf is
completedor skipped, or the run was stopped.
Flow
The run is unattended except at its ask points: a loaded Rules subsection says to ask, the planner is blocked (step 5.2), an implementer reports a TEST FAILURE (step 5.4), there are external blockers (step 3.7), or out-of-scope items are left to turn into ToDo cards (step 8). Every ask point is asked the same way when another skill started this one under its --auto-apply, which only skips that skill's own next-action question. Everywhere else decide with your own best judgment, and stop with a clear report on ambiguity that can't be resolved safely. Only this skill runs state-changing git commands, and only where a gitflow.md Rules subsection says so; if one fails and the subsection doesn't say what to do, stop git operations in that repository for the rest of the run, report why and continue without git there. No ToDo card is created before step 8, and only this skill creates one; subagents only return out-of-scope items. Tell every subagent that no user is available and that it never creates a ToDo card, passing answers the user gave at an ask point as ground truth.
- Work out the run's git repositories, then load each repository's
gitflow.md(### Apply start,### Leaf done,### Review approved,### Apply end) and the rootsettings/code-review.md(### Leaf done,### Apply end,### Findings), which drives the review loop for the whole run. A missing file or subsection skips the step it drives. - Resolve
$1to the root id:
- If
$1is missing, report that an explicit id or title is required and stop. - If it is a UUID, use it.
- Otherwise call
specs_searchwithquery$1. With no hit, report that nothing matched and stop; with one, use its id; with several, report the candidates (id and title) and stop, asking for an explicit id.
- Fetch the execution plan, before the root is marked
processing, so a stop here leaves it unchanged: - Read the root with
specs_get. - Call
specs_treewithid= the root id andexecutionOrdertrue, once, also for a root without children (the only source of the root's own blockers). Keep itstreeandplan. - If
plan.cycleis set, report its specifications (title and id, in order) and stop, changing no status. - If
plan.orderis empty, report that nothing under the root ispreparedorprocessing(for a root without children, that it isn't prepared) and stop. - If a leaf's
internalBlockersentry that is inplan.orderdoesn't come earlier in it, or one that isn't inplan.orderis missing fromplan.unpreparedInternalBlockers, report the inconsistency (a backend bug) and stop. - For each
plan.unpreparedInternalBlockersentry, add itsblockedLeafIdsto the skipped set, with the reason "<leaf> is blocked by <blocker title> (<blocker id>, <status>)". - If
plan.externalBlockersis not empty, ask, listing per blocker its title, id, status,pathtitles joined with " / " and the titles of itsblockedLeafIds:
- Stop: report the external blockers and stop without changing any status.
- Run only the leaves not blocked by external blockers: add every blocker's
blockedLeafIdsto the skipped set with the same reason. A blocker on the root or on an ancestor inside the branch blocks every leaf; then say plainly that nothing runs.
- If every leaf in
plan.orderis skipped, report that with the reasons and stop. - Otherwise set the root
processingwithspecs_set_status. The run list isplan.orderminus the skipped set, in plan order; leaves alreadyprocessingfrom an interrupted run go through the same flow and are re-planned. - Seed a status map from
tree(every node's id, status, parent and children) and keep it current for the rest of the run. - Follow gitflow.md
### Apply startin every repository. - For each leaf in the run list, in order:
- If it has meanwhile been added to the skipped set, record it as skipped and go on with the next leaf.
- Spawn
spec-implementation-plannerin the foreground with the leaf's id. If it returns its Blocked report, ask, showing the blockers:
- Provide a resolution (free text): resume the same planner via
SendMessagewith it as ground truth, and handle its report the same way. - Skip this leaf: record it as "blocked, skipped", apply skip propagation and go on with the next leaf.
- Stop the run: record it as "blocked, skipped" and the remaining leaves as "not processed", then go to step 6 (to step 7 if nothing was implemented).
- Do what gitflow.md
### Apply startsays to do before a leaf is implemented, take the leaf's baseline, then spawnspec-implementerwith the leaf's id and title. - If its report holds a
TEST FAILUREblock, record the failure (leaf, failing tests, command, a summary of the last output). The leaf staysprocessing, stays off the implemented-leaves list and out of review, and its files are never staged. Ask:
- Retry: spawn
spec-implementeragain with the failure as context and handle its report the same way; on success drop the recorded failure and continue with step 5.5. - Skip: apply skip propagation and go on with the next leaf.
- Stop: record the remaining leaves as "not processed" and go to step 6 (to step 7 if nothing was implemented).
- Otherwise add the leaf to the implemented-leaves list, follow gitflow.md
### Leaf donein every repository, then code-review.md### Leaf donefor the leaf. - Before the next leaf, wait wherever code-review.md
### Leaf donesays to wait. After the last leaf, wait until every review in flight has settled. - Follow code-review.md
### Apply end. Then set every implemented leaf that no code-review.md Rules subsection reviewed or completed during the run tocompletedwithspecs_set_status, and handle it as under leaf completion. - Once every review has settled:
- If every leaf in
plan.orderiscompleted, the skipped set is empty and every descendant in the status map iscompleted, set the rootcompletedwithspecs_set_status. - Otherwise leave the root
processingand record why.
Then follow gitflow.md ### Apply end in every repository, also after an early stop in step 5 (never after a stop in step 2 or 3).
- Last of all, once everything else, the git steps included, is done, turn the run's out-of-scope items into ToDo cards. Do this in every run that reached step 5, whatever its outcome (never after a stop in step 2 or 3, which collected no item):
- If the list is empty, ask nothing and go to the report.
- Call
todos_listwithoutstatus, which returns the project's cards that are not closed, and drop every item an existing card already covers, recording it as a duplicate of that card (with the card's title). - Give each remaining item a type (
follow-up,tech-debt,bugoridea) and a priority (low,mediumorhigh): the subagent's proposal when it made one, otherwise your own judgment. - If no item remains, ask nothing. Otherwise ask once which of the remaining items to turn into ToDo cards, as a multiple-choice question over every item (title, description, type and priority per option); when they don't fit one message, continue in further messages until every item has been offered. Without a user, ask nothing, create nothing and record every remaining item as not created.
- For each chosen item, call
todos_createwithtitle(at most 200 characters),description,type,priorityandoriginSpecificationId= the specification id recorded with the item. Decide yourself, without asking for approval, whether the card needs open questions, and pass them asquestions(at most 3) only under this rule: a question is allowed only when the card cannot be carried out without a decision that only the user can make (a product choice, mutually exclusive approaches with a real trade-off, or an irreversible or destructive action); never ask what the code, the conventions or the settings answer, and never ask "just in case"; most cards have none. Give a question its answer options, in the project's question format (recommended option first and marked), when they can be enumerated. Record the items not chosen as declined. - If
todos_listis unavailable or its call is refused, skip the question and record every item as not created with the reason. Iftodos_createis unavailable or a call is refused (an invalid field, a missing permission or any other error), record that item as not created with the reason and carry on. A failure in this step never changes the root's status, a leaf's status or the run's outcome.
Throughout the run:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/atn-apply/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/athenode-sdd/standard-setup/atn-apply)