ckb/.agents/skills/ckb-lint/references/manual-checklist.md
Michał Kopeć e429ac6953 Template 2.0.0: drop PowerShell support (D-0019)
Breaking: lint_quick.ps1 and every PowerShell path are removed. Without
Python the session-start fallback is lint_quick.sh (Git Bash on Windows).
Every script the template and its modules ship is Python. KBs that need
PowerShell stay on the 1.x maintenance branch. ckb-upgrade now deletes
files upstream removed from a skill or module folder it still ships.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 13:49:03 +01:00

31 lines
3.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Manual lint checklist (no-Python path)
Use only when no Python interpreter is available (see "Scripts and the
Python Runtime" in `AGENTS.md`). This reproduces the *detection* that
`scripts/lint_report.py` does mechanically; the numbered checks in
`SKILL.md` still say what each finding means and what to do about it.
Work `wiki/` first, then each connector-backed `libs/<name>/` (has
`source.yaml`). Skip `index.md` and `log.md` everywhere. Scope the run and
say what was skipped — by hand, this costs tokens.
| # | Check | How to detect by hand |
|---|---|---|
| 1 | Conformance | `rg -L --files-without-match '^---$' wiki -g '*.md' -g '!index.md' -g '!log.md'` lists pages with no frontmatter. For the rest, open the frontmatter: must be flat `key: value` lines, closed by `---`, with a non-empty `type`. `lint_quick.sh` counts these. |
| 2 | Freshness | `rg -n '^(last_updated|freshness_window_days):' wiki` and compare: today − `last_updated` > `freshness_window_days` ⇒ stale. `lint_quick.sh` counts these. |
| 3 | Confidence | `rg -n '^confidence:' wiki` — flag values outside 0.0–1.0 or non-numeric; then apply the decay rule from check 3 to pages older than their window. |
| 4 | Retention | `rg -n '^retention: low' wiki` and check each page's age against check 4's archive threshold. |
| 5 | Decisions | For each `wiki/decisions/NNNN-*.md`: `status` ∈ proposed/accepted/rejected/superseded/reversed; `decided_on` and `decided_by` present; every `supersedes` has a matching `superseded_by` on the target (`rg -n '^(supersedes|superseded_by):' wiki/decisions`). |
| 6 | Orphans | For each page, `rg -l '<page-slug>' wiki` — a page nothing links to (outside its own directory index) is an orphan. Do this only for pages touched since the last lint unless asked for a full pass. |
| 7 | Graph | `rg -o '"(from|to)": *"[^"]+"' wiki/graph/edges.json` — every endpoint must exist as a file. Verbs must be in the edge vocabulary listed in `docs/CHANGELOG.md`. |
| 8 | Index / log | Every page appears in its directory `index.md`; every file in `git log --since=<last lint> --name-only -- wiki` has a matching `wiki/log.md` (or `wiki/decisions/log.md` + POINTER) entry. |
| 12 | Source fingerprints | For each `## Sources` bullet with `sha256:<prefix>`: `sha256sum <file>` must start with the prefix. `lint_quick.sh` counts these. |
| 13 | Crux verbatimness | For each `## Crux` quote, `rg -F '<first ~40 chars>' <cited source>` — a miss means the evidence moved. Only practical for a few pages; list candidates and ask which to verify. |
| 15 | Secrets and private spans | `rg -n 'BEGIN [A-Z ]*PRIVATE KEY|AKIA[0-9A-Z]{16}|gh[pousr]_[A-Za-z0-9]{36}|xox[abprs]-|sk-[A-Za-z0-9_-]{20}|AIza[0-9A-Za-z_-]{35}|://[^/ :@]+:[^/ @]+@' wiki outputs workload raw` and `rg -n -i '<private>' wiki`. `lint_quick.sh` counts the reduced set. |
| 16 | Kept answers | For each `outputs/answers/*.md`, check its `## Sources` fingerprints as in check 12. |
| 17 | Review status | `rg -n '^review:' wiki` — values must be draft/reviewed/needs_update; for each `reviewed` page compare `last_updated` with `reviewed_on`. `rg -l '^review: (draft|needs_update)' wiki` is the review queue. |
| 18 | Contradictions | `rg -n '^> *CONTRADICTION:' wiki` — every hit is open until resolved. |
| 19 | Tags | `rg -n '^tags:' wiki` against the backticked first column of `wiki/tags.md`. |
| — | Context budget | `wc -c AGENTS.md` ÷ 4, plus each skill's `description:` line ÷ 4, against `budget: always_loaded_tokens` in `ckb.yaml` (default 9000). |
Checks 9–11 (error book, supersession judgment, auto-fix vs. report) are
the model's job in every mode and are unchanged here.