Skip to content
Back to skills

Concise Doctrine

ASecurity

**Question:** when the build agent is given the *same* checklist content, does delivering it via the **Skill tool** (`Skill(code-foundations:<name>)`, self-loads checklists — current main) produce different code than delivering it via **`Read()`** of the same `SKILL.md` + `checklists.md`? **Design:** arms differ ONLY in the build-agent's (+ review-agent's) "Load Phase Skills" section. Identical dispatch, identical content (SKILL.md + checklists.md for cc-defensive-programming, cc-routine-and-...

  • 390 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 6, 2026
developmentgosecurity

Security analysis

A100/100

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

Scanned September 6, 2026

npx -y skills add ryanthedev/code-foundations --skill concise-doctrine --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Concise Doctrine?

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

Security grade badge for Concise Doctrine
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ryanthedev-concise-doctrine/badge)](https://www.skillsdirectory.com/skills/ryanthedev-concise-doctrine)

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
# Read vs Skill-load — Checklist-Delivery A/B (quick slice)

**Question:** when the build agent is given the *same* checklist content, does delivering it
via the **Skill tool** (`Skill(code-foundations:<name>)`, self-loads checklists — current main)
produce different code than delivering it via **`Read()`** of the same `SKILL.md` + `checklists.md`?

**Design:** arms differ ONLY in the build-agent's (+ review-agent's) "Load Phase Skills" section.
Identical dispatch, identical content (SKILL.md + checklists.md for cc-defensive-programming,
cc-routine-and-class-design, code-clarity-and-docs). **Minimal gate** (build agent only, no REVIEW)
to isolate first-pass code production. sonnet, 3 tasks × 3 runs/arm = 18 runs, all `ok`.

## Results (means, n=3/arm/task)

| Metric | read | skill | Δ (skill−read) | read |
|---|---|---|---|---|
| Correctness — hidden DW | 100% | 100% | 0 | **wash** |
| Rubric (readability 0–1) | 0.91 | 0.92 | +0.01 | **wash** |
| LOC | 49.1 | 52.3 | +3.2 | read slightly leaner |
| fn_len_max | 16.8 | 21.3 | +4.6 | read shorter fns |
| cc_avg / cc_max | 4.0 | 4.1 | +0.1 | **wash** |
| mutation | mostly n/a | mostly n/a | — | unusable (see caveat) |

Per task, the LOC/fn-length lean toward `read` is **driven almost entirely by 02-rpn**
(read 48 vs skill 60 LOC; read fn 35 vs skill 45). On 04-password it's near-equal; on
05-rate-limiter it's a wash/reversed (read 84 vs skill 78 LOC). It is not a consistent effect.

## Verdict

**Wash — no meaningful code-quality difference between Read and Skill-tool delivery.**
Correctness and readability are identical; the only whisper of a difference (read slightly more
concise) is one-task-driven and well within noise at n=3. The reassuring read for the project:
**the recent Read→Skill-load migration did not cost code quality.** This slice rules out a *large*
effect; it cannot detect a small one.

> NOTE: the auto-generated `results-read-vs-skill/REPORT.md` is the concise-doctrine template;
> its baseline/concise "NO-GO" verdict does not apply to the read/skill arms and should be ignored.

## Caveats (honest)

1. **Low power:** n=3/arm/task (9/arm). Exploratory only.
2. **Mutation unusable this slice:** 10/18 runs scored `n/a (suite not green)` — a *scorer*
   artifact, not broken code. Agents wrote `from outputs.<mod> import ...`; the offline mutation
   harness runs pytest from inside `outputs/`, where that import fails. Hits both arms equally
   (5 read / 5 skill). Correctness (hidden suite, imported correctly) is 100% everywhere. Where
   mutation *was* scored it was 1.0 (saturated, non-discriminating).
3. **Static unreliable for the class task:** radon reported 0 functions / cc 0 for the
   class-based 05-rate-limiter (counts module-level `def` only). LOC is still valid there.
4. **Identical content by design:** this tests the *delivery mechanism*, not the old real-world
   before/after (which also changed the dispatch text). A large mechanism effect is ruled out.

## To strengthen (if pursued)

- Fix the mutation harness cwd/import (run pytest from the parent of `outputs/`, or rewrite the
  agent test import) → recovers the mutation metric.
- Scale: both models × more tasks × n≥5; add tasks where checklist application is load-bearing
  (security/validation-heavy) so the rubric can actually discriminate adherence.
- Add a rubric dimension that explicitly scores "did the code reflect the delivered checklist."

Files in this skill

  • REPORT.adherence.md6.5 KB
  • REPORT.full-run.md2.6 KB
  • REPORT.harder-tasks.md4 KB
  • REPORT.read-vs-skill.md3.4 KB
  • REPORT.slice-sample.md2.2 KB
  • REPORT.sweep.md4.6 KB
  • RESULTS.full-run.csv11.3 KB
  • _live-smoke/01-duration/baseline/sonnet/run-1/meta.json261 B
  • _live-smoke/01-duration/baseline/sonnet/run-1/outputs/duration.py1 KB
  • _live-smoke/01-duration/baseline/sonnet/run-1/outputs/test_duration.py2.8 KB
  • _review-iter/gauntlet-results.txt486 B
  • _review-iter/gauntlet.py5.8 KB
  • _review-iter/run_iter.py4 KB
  • _review-iter/samples/secure_doc_reader.py901 B
  • _review-iter/samples/vulnerable_doc_reader.py1019 B
  • _review-iter/samples/vulnerable_test.py2.3 KB
  • _review-iter/v0.md1.3 KB
  • _review-iter/v1.md2.5 KB
  • _review-iter/v2.md2.5 KB
  • arms/__init__.py326 B

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

Comments

Loading comments…

Newsletter

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