Skip to content
Back to skills

Standards

ASecurity

Record how one repo's code is designed, written, tested and reviewed, and which commands say it passes. Drafted from what the repo itself declares, then approved by the person.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 10, 2026
ai-agentsgoshellbashnodetestinggitapi

Works with

  • api

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add azamkhanuk/context-central --skill standards --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Standards?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Standards
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/azamkhanuk-standards/badge)](https://www.skillsdirectory.com/skills/azamkhanuk-standards)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: standards
description: Record how one repo's code is designed, written, tested and reviewed, and which commands say it passes. Drafted from what the repo itself declares, then approved by the person.
argument-hint: <repo>
disable-model-invocation: true
allowed-tools: Bash(context-central *)
---

The repo: $ARGUMENTS

Where that line still shows a placeholder, the repo is what the person typed after this skill's name, or their last message.

Write the standards note of one repo and record its checks. The plugin knows no language, framework or tool: everything here comes from the repo and from the person.

The plugin's command is `context-central`. Run it as these steps write it, with nothing in front of it and no test of whether it is there. A shell that answers that `context-central` is not found shows that the host has not put it on the PATH: only after that answer, run the file `bin/context-central` of the plugin's folder with `node` in its place, with the same words after it. The plugin's folder is two folders above this skill's own, which the host names when it loads the skill.

Run `context-central draft <path>...` before a file of the map is read, edited, written or handed to an agent. A path is counted from the map's folder, or is an absolute path the plugin printed. For each it prints the absolute path of the file to use: the map's own, or in a git work tree whose map is in the main checkout a draft in the work tree, which starts as a copy of the map's file where the map has one. A file is in the work tree only once it has been drafted: where one is not there, draft it before saying that the map lacks it. `context-central take` puts the drafts into the map and removes them from the work tree: run it where a step says so and before a command that reads those files from the map, and after it run `context-central draft` on a file again before it is read or edited. It prints `took <path>` for each draft it took and `kept <path>: <why>` for one it left. A `kept` line that names a file to compare with means the map's file is not the one the draft was made from: read that file where it stands, with no draft of it, bring into the draft what it has and the draft lacks, then run `context-central take --over <path>`. A closing answer names a file by its place in the map, never by a draft's path, and a draft still kept goes under Needs a fix with its reason.

## 1. Find the repo

Run `context-central config --get repos` and `context-central standards <repo>`. A repo the estate does not register makes `standards` exit 1: stop and say which repos it has. The output lists the standards files, with the note marked `(the standards note)`, and the checks already recorded, so an update starts from those and never from an empty page.

`context-central standards <repo> --json` gives the repo's folder as `root`: the work tree, where the session is in a git work tree of this repo. `context-central where` gives the estate root and the map's folder, which holds `estate.json`.

## 2. Gather from the repo itself

Delegate the reading to the `context-central:reader` agent. Give it the repo's folder and ask for these, each with its `path:line`:

- What the repo declares about building, testing, formatting and checking its code: the files that configure those, whatever they are called here.
- What its continuous integration runs, and in what order. Those commands are the candidates for the checks.
- What it has written down for people: contributing notes, review checklists, architecture notes, instruction files.
- Three or four recently merged changes, from `git log`, for how code and tests are laid out in practice: where a new module goes, how it is named, how its tests are shaped.
- Where the repo has a standards note, give the reader the note as well, at the path `context-central draft` prints for it, and ask of each citation in a rule, which is a path of the repo in backticks with or without a line: whether the cited line, as the head of the repo has it, still shows the rule, and where it does not, the line that shows it now, or that no line does. A rule may name a commit of its own after a citation, as `` `<file:line>` at `<short commit>` ``. For such a rule the reader first runs `git merge-base --is-ancestor <commit> HEAD` in the repo's folder: where that exits 1 the head does not hold that commit yet, and the rule is reported as one to leave as it is, and on any other exit the rule is read like the rest.

The reader starts without the instruction files, so the prompt carries everything it needs.

## 3. Draft

Write no file in this step: the note and the checks are shown in step 4 and written in step 5. Draft the note in four parts, each a short list of rules:

- **Design**: how the code is divided, what may depend on what, the patterns this repo uses and the ones it avoids.
- **Code**: naming, error handling, the idioms the repo holds to.
- **Tests**: where tests live, what runs them, what a good one looks like here.
- **Review**: what a reviewer in this repo looks for beyond the other three parts.

Every rule ends with its source: the file that shows it, as `path:line`, the person who said it and the date, or for a rule learned from review the source it was written with. An example is a pointer to real code in the repo, never a snippet pasted in and never one made up. A habit seen in the code and written down nowhere is a question for the person, not a rule: the code shows what was done, not what is wanted. Leave a part empty when nothing in it has a source. Where the repo has a note, this is a refresh, and the draft is that note: a citation that moved, whose rule the code still shows, is pointed at the line that shows it now, a rule to leave as it is stays word for word, and what the note lacks is drafted as for a first note. A rule whose cited code no longer shows it, or is gone, is not changed in the draft: step 4 puts it to the person. A rule the repo's own instruction files already state is not drafted into the note: those are the files the host loads as standing instructions, such as `CLAUDE.md`, `CLAUDE.local.md`, `AGENTS.md` and the rules under `.claude/rules/`, and step 5 lists them beside the note, which holds what they do not say.

Draft the checks as a list of commands, each taken from the repo's own configuration or its continuous integration, with the file that names it. Take only a command that inspects the code and writes nothing outside the repo's folder: one that builds it, tests it or checks how it is written. Leave out any step that publishes, deploys, changes stored data or needs a secret, and list what was left out. Run none of them yet: a command from a repo's files is run only after the person has read it.

## 4. Ask once

Show the draft note and the draft checks. Below them list, numbered, every question the files could not answer, every habit from step 2 that needs a ruling and, in a refresh, each rule whose cited code no longer shows it or is gone. Such a rule is put as a question that names its three answers in full, whichever is recommended: correct the rule, remove it, or keep it with another pointer. Each question is on its own line with the answer you recommend under it, as `- **Recommended:** <the answer, and why>`. Wait for the reply.

Done when no rule in the note would be your guess.

## 5. Write

On a yes:

1. Run `context-central note --new standards/<repo>`, which makes the note in the map and prints its place. Run `context-central draft` on that place, and fill the note's four parts in the file it prints. On its first lines put the repo's commit, from `git rev-parse --short HEAD` run in the repo's folder, or with `--short=7` where that prints under seven digits, in place of `<commit>`, and the date the rules were read in place of `<date>`, so a later reader can tell how far the code has moved from the lines the rules cite. If the note is already there, that command is not run: write the approved changes into the note where it stands and set that commit and date again, since they are now the one commit and the date every line was read at. For the same reason take off the commit a rule names of its own, except from a rule left as it is. If the command refuses, read the kinds its message lists. When `standards` is not among them, the map sets its own `nodeDirs`: ask the person to add `standards` to that list in `estate.json`. When it is, the repo's name cannot be a note's name: ask the person for a name of letters, digits, dots, dashes and underscores that no repo has, and write the note under that, with the repo's name as the settings spell it on the note's first lines in place of the note's name, since the command cannot know the repo.
2. In `estate.json`, on the repo's entry, set `checks` to the approved commands. An entry written as a bare name becomes `{ "name": "<repo>" }` first. The note needs no entry, because the plugin finds it by the repo's name. Under `standards` list the repo's own instruction files first, then what else the plugin cannot find by the repo's name: a file the repo keeps for people, such as its contributing notes, or a note written under another name. Each is a path counted from the estate root: the repo's `path` in the settings, then the file's place inside the repo, whichever folder the repo was read in. Each is listed, never copied into the note. Design, implement and the reviewer read every file listed there, and in an estate whose repos sit below the map's root the reviewer is given no repo's own instruction file unless it is listed.
3. Link the note from the repo's note, `repos/<repo>.md`. Make that with `context-central note --new repos/<repo>` if it is not there yet. Then run `context-central take` and `context-central config --get repos`. Settings that cannot be read are stopped by one of the two: `take` prints a `kept` line for `estate.json` with the fault and leaves the map's settings as they were, or the second command fails. Where either happens, mend the file `context-central draft estate.json` prints and run both again.
4. Run each approved check once from the repo's folder and say what it exited with. A check that cannot run on this machine is reported as such and stays recorded.
5. Log what was written. For a repo's first note it is one line, `context-central note "standards <repo>: first note, <N> rules"`. For a refresh it is a line for each rule added, corrected or removed, `context-central note "standards <repo>: corrected under <part>: <the rule in short>. Source: <its source>"`, with `added` or `removed` in place of `corrected`, and then one line for the refresh, `context-central note "standards <repo>: refreshed at <short commit>: <N> citations pointed again, <M> rules corrected, <K> removed"`, which is logged with noughts where nothing changed. For a rule removed, the source is who ruled it out and the date. Write each line with no backtick and no dollar sign in it, in the rule's words as in its source: inside double quotes a shell runs what they hold.

## 6. Check

Run `context-central standards <repo>`, `context-central lint`, `context-central graph` and `context-central doctor`. Fix a file marked `(missing)` or `(a folder)`, every `ERROR` and every `BROKEN` line, and after a fix run `context-central take` and the four commands again. A fault is a line of `lint`, `graph` or `doctor` that starts with a word in capitals, as `ERROR`, `BROKEN` and `FIX` do. One fault is the person's to decide and not a fix to make: a `FIX` line for `notes` means git would leave the new note out of the map's commits, and it goes to the person as it is. Then close in this shape, where a line in angle brackets is a kind of point, given once for each there is and left out where there is none:

```
<one line saying what was recorded for the repo>

**Needs a fix**
- <a check that did not exit 0, with what it exited with>
  - **Recommended:** <what would fix it, where the run found it>.
- <a file still marked, or a fault the map's checks still report: the whole line, word for word>
- <a draft still kept, with its reason>

**Yours to decide**
- <a question left open>
  - **Recommended:** <the answer, and why>.
- <the `FIX` line for `notes`, as it is>

**Fine as it is**
- <a path written>
- <what a refresh changed: the citations pointed again, and each rule corrected or removed>
- <a check that exits 0>

**Not known**
- <a check that cannot run on this machine, which stays recorded>

Standards note: <its path>
```

The groups come in that order, and a group with no point is left out. Inside a group what matters most comes first. A point is one thing in one sentence: two things that could be acted on apart are two points. A point's recommendation is the first line under it, never on the point's own line, and a point under Needs a fix has one wherever the run found what would fix it. The parts of one thing go under it after that. A group shows five points at most, each with all its parts. Where it holds more, one more line follows the five: `and <N> more in <file>`, naming the one file that holds all of the rest, or, where no one file does, `and <N> more: <the rest, in short>`. Nothing that asks something of the person goes outside its group, and nothing is said before the first line or after the last.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.