Skip to content
Back to skills

Repository Practice

ASecurity

Use when preparing commits or PRs, writing their bodies, comments or prompts, choosing tests and checks, or working near .ana/, .env, vendor/ or src/wall/. Explains evidence levels (present in source, proved without a model, exercised live), terminology and directory ownership (AGENTS.md sections 9–14). preflight.ts says which checks and labels a diff owes; direction.ts finds production-to-helper imports. Procedures belong to stack-pr, run-management and attribution-and-proof; coding habits a...

  • 77 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 10, 2026
documentationgodocumentation

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned November 10, 2026

npx -y skills add s-smits/anabasis --skill repository-practice --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Repository Practice?

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

Security grade badge for Repository Practice
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/s-smits-repository-practice/badge)](https://www.skillsdirectory.com/skills/s-smits-repository-practice)

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: repository-practice
description: "Use when preparing commits or PRs, writing their bodies, comments or prompts, choosing tests and checks, or working near .ana/, .env, vendor/ or src/wall/. Explains evidence levels (present in source, proved without a model, exercised live), terminology and directory ownership (AGENTS.md sections 9–14). preflight.ts says which checks and labels a diff owes; direction.ts finds production-to-helper imports. Procedures belong to stack-pr, run-management and attribution-and-proof; coding habits are in tools/oxlint/HABITS.md."
---

# Repository practice

This skill expands `AGENTS.md` sections 9 to 14. Where a reference disagrees with the source, the
source wins and the reference is corrected in the same change.

| Section | Reference | What it explains |
| --- | --- | --- |
| 9. Status, evidence and claims | `references/evidence-and-claims.md` | what each level of the ladder needs, and what a sentence may claim |
| 10. Runs with a real model | `references/real-model-runs.md` | the nine conditions, `/goal`, the OS wall on each platform, seat roots and the network |
| 11. Working in the repository | `references/working-in-the-repository.md` | commands, hooks and CI, the never-touch list, the stack and labels, reviews and subagents |
| 12. Code that passes the first time | `references/code-and-writing.md` | strict lint, the dependency direction, tests of facts |
| 13. Writing | `references/code-and-writing.md` | the writing rules in full |
| 14. Terms and map | `references/terms-and-map.md` | each term's one meaning, the sed, which directory owns what |

The procedures live elsewhere: pushing and landing in `stack-pr`, runs in `run-management`, claims
in `attribution-and-proof`, coding habits in `tools/oxlint/HABITS.md` (read whole before coding),
and which seat a change reaches in `design-and-seats`'s `seat-view.ts`.

## What a change owes: `scripts/preflight.ts`

```text
bun .claude/skills/repository-practice/scripts/preflight.ts [--base <rev> | --commit <rev>] [--stack]
```

It reads the working tree against `HEAD` (untracked files included), against `--base`, or one
commit against its parent with `--commit`, and asks each owner what the diff owes:

- whether it is documentation only (`DOCUMENTATION`, `tools/runtime/gate.ts`);
- the tests one import away, as a `bun run test -- ...` line (`nearbyTests`);
- `bun run ui:gate`, where `packages/ui` or its setup changed;
- each area of `tools/runtime/moments.ts` it enters, with what that area owes (rule 3's wall tests
  for `seats`, a replay for `measurement`, a rehearsal for `campaign`, the other platform for
  `wall`);
- files over 800 nonblank lines or functions over 115 (`tools/loc/source-policy.ts`);
- section 13's slips in changed Markdown prose: em dashes, banned words, relative dates,
  exclamation marks, American spellings;
- whether hooks are on, whether a run may start here (`treeFault`), and with `--stack` where the
  branch sits on the open stack (`stack-pr/scripts/stack.ts`);
- a suggested `importance:` label and category from the paths (`CATEGORIES`,
  `tools/runtime/land.ts`), which the definitions in section 11 and the operator settle.

It reads no log and runs no check; `bun run commit:check` and the gate validate. Its tests are in
`test/repository-practice-script.test.ts`.

## The dependency direction: `scripts/direction.ts`

```text
bun .claude/skills/repository-practice/scripts/direction.ts [--file <path>]...
```

Section 12 lets dependencies run one way, which no lint rule checks. With the gate's import reader
(`importsOf`) it names each import from production (`src/`, `vendor/`, `packages/`, `tools/`
outside `tools/wri/`, or each `--file`) into `.claude/`, `tools/wri/`, `studies/` or `test/`, and
exits 1 on any. Its tests are in the same file.

Files in this skill

  • SKILL.md3.7 KB
  • references/code-and-writing.md2 KB
  • references/evidence-and-claims.md1.2 KB
  • references/real-model-runs.md2.1 KB
  • references/terms-and-map.md3.8 KB
  • references/working-in-the-repository.md4.3 KB
  • scripts/direction.ts3.3 KB
  • scripts/preflight.ts14.4 KB

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 documentation →

Comments

Loading comments…

Newsletter

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