agentleFS
jasonmichaelbell78-creatorjasonmichaelbell78-creator/sonash-v0/.claude/skills/system-test/SKILL.md

system-test

Skill2 starsChanged 10 months agoApache-2.0View on GitHub

Version: 4.0 (23-Domain Interactive with Suggestions) Sessions: 6 recommended (can run as single long session) Output: Per-domain JSONL + unified findings + SUMMARY.md report Performs a deep, interactive audit of the entire SoNash codebase across 23 domains. Unlike v3.1 which spawned 9 sub-skills in parallel waves, v4.0 runs each domain sequentially with interactive user review after every domain. Key differences from v3.1: - 23 domains (vs 9) — finer granularity, deeper checks - Per-finding suggestions — each finding includes a…

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When the task doesn't match this skill's scope -- check related skills

    line 28
  2. Distinctive:

    When a more specialized skill exists for the specific task

    line 29
  3. Very specific:

    If resume: Read PLAN_INDEX.md -> show progress -> confirm resume point

    line 92
  4. Distinctive:

    After each domain's checks complete, present findings with suggestions and options.

    line 110
  5. Distinctive:

    Before individual review, offer:

    line 139
  6. Distinctive:

    After Domain 20 report is generated:

    line 227

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

System Test — 23-Domain Interactive Plan

Version: 4.0 (23-Domain Interactive with Suggestions) Sessions: 6 recommended (can run as single long session) Output: Per-domain JSONL + unified findings + SUMMARY.md report


When to Use

  • Tasks related to system-test
  • User explicitly invokes /system-test

When NOT to Use

  • When the task doesn't match this skill's scope -- check related skills
  • When a more specialized skill exists for the specific task

What This Does

Performs a deep, interactive audit of the entire SoNash codebase across 23 domains. Unlike v3.1 which spawned 9 sub-skills in parallel waves, v4.0 runs each domain sequentially with interactive user review after every domain.

Key differences from v3.1:

  • 23 domains (vs 9) — finer granularity, deeper checks
  • Per-finding suggestions — each finding includes a recommendation, counter-argument, and severity rationale
  • Interactive review — user accepts/rejects/defers each finding with full context
  • Multi-session — designed for 6 sessions with checkpoint recovery
  • TDMS-integrated — findings sync directly to MASTER_DEBT.jsonl
  • Self-auditing — Domain 21 verifies the audit's own completeness

Quick Start

/system-test                  # Fresh full audit
/system-test --resume         # Resume from checkpoint
/system-test --domain 7       # Re-run single domain
/system-test --from 8 --to 11 # Run session range
/system-test --dry-run        # Preview checks only
/system-test --batch          # Skip interactive review

Reference Documents

  • WORKFLOW.md — Complete interactive workflow with all 12 decision points
  • RECOVERY_PROCEDURES.md — Compaction recovery and checkpoint management
  • TRIAGE_GUIDE.md — Post-audit finding prioritization and TDMS intake

Session Allocation

SessionDomainsFocus AreaRiskEst. Findings
10-4FoundationLOW5-15
25-7Lint, UI, Cloud FunctionsHIGH20-35
38-11Security, Rules, AuthHIGH15-25
412-16Perf, Config, Docs, PWAMEDIUM15-25
517-19Prior Audits, Admin, DataMEDIUM10-20
620-22Report, Self-Audit, SentryLOW5-10

Initialization Protocol

On every invocation:

  1. Detect mode: fresh / resume / targeted / dry-run
  2. If resume: Read PLAN_INDEX.md -> show progress -> confirm resume point
  3. Create/verify output directory:
    docs/audits/system-test/audit-YYYY-MM-DD/
    ├── PLAN_INDEX.md
    ├── SUMMARY.md           (written at end)
    ├── unified-findings.jsonl (written at end)
    └── domains/
        └── d00-d22 JSONL files
  4. Write PLAN_INDEX.md skeleton (all 23 domains, status: pending)
  5. Ask user which session we're running (Decision Point 1)
  6. Commit: system-test: initialize audit-YYYY-MM-DD

Interactive Review Protocol

After each domain's checks complete, present findings with suggestions and options.

Per-Finding Presentation

Each finding MUST include:

  1. Severity + Effort — preliminary assignment with rationale
  2. Evidence — actual code or command output (not paraphrased)
  3. Suggestion — recommendation (ACCEPT/REJECT/DEFER) with reasoning
  4. Counter-argument — why the opposite decision might be valid
  5. Suggested fix — concrete remediation steps
  6. Related findings — cross-references to related items in other domains

User Decision Options

For each finding, offer these choices:

- Accept as-is (severity, effort unchanged)
- Accept, change severity (offer S0/S1/S2/S3)
- Accept, change effort (offer E0/E1/E2/E3)
- Reject as false positive (must give reason)
- Defer (revisit later — must give reason)
- Discuss (show more context, then re-present)

Review Mode Options

Before individual review, offer:

- Individual review (one-by-one)  [Recommended for < 10 findings]
- Batch accept all                [Recommended for clean domains]
- Batch accept with exceptions    [Name the ones to discuss]
- Show all detail first           [Read everything, then decide]

Domain Execution Protocol

For each domain:

  1. Announce — show domain header, risk level, expected findings, check list
  2. Ask — proceed / skip / reorder (Decision Point 3)
  3. Execute — run all checks, collect raw findings
  4. Present — show summary table, ask review mode (Decision Point 4)
  5. Review — per-finding with suggestions (Decision Point 5 per finding)
  6. Summarize — show accepted/rejected/deferred counts
  7. Ask — continue / re-review / pause (Decision Point 6)
  8. Commit — system-test: Domain N — <name> [M/23]
  9. Update — PLAN_INDEX.md domain status -> Complete
  10. Check — session boundary (Decision Point 7 if triggered)

Anti-Compaction Guardrails

LayerMechanismWhat It Protects
1File-first: all content written to disk immediatelyNo content exists only in context
2Incremental commits after every domainWorst case: lose 1 domain of work
3PLAN_INDEX.md as recovery anchorSingle file shows all progress
4Domain independence: no cross-domain content depsCan resume anywhere without backtracking

Recovery after compaction:

1. Read PLAN_INDEX.md -> last Complete domain
2. Verify last domain's JSONL is intact
3. Resume from next domain

23-Domain Test Plan

The following 23 domains cover the complete audit scope. Each domain includes risk level, check tables with IDs and criteria, key files, known issues, and suggestion templates for interactive review.

Read .claude/skills/system-test/domains.md for the complete 23-domain test plan with per-domain test cases and verification criteria.

Domain list:

#DomainRiskSession
0Self-ValidationNONE1
1PrerequisitesLOW1
2Build & CompilationLOW1
3Test SuiteLOW1
4Dependency HealthMEDIUM1
5Lint & Static AnalysisLOW2
6UI Components & AccessibilityMEDIUM2
7Cloud FunctionsHIGH2
8Security Headers & CSPHIGH3
9Firestore RulesHIGH3
10Environment & ConfigMEDIUM3
11Auth & Session ManagementHIGH3
12PerformanceMEDIUM4
13Config File ConsistencyLOW4
14Documentation & CanonLOW4
15PWA & OfflineMEDIUM4
16TDMS IntegrityLOW4
17Prior Audit FindingsMEDIUM5
18Admin PanelMEDIUM5
19Data Integrity & MigrationHIGH5
20Final Report & Cross-CuttingNONE6
21Post-Test Self-AuditNONE6
22Sentry & MonitoringMEDIUM6

TDMS Sync Protocol

After Domain 20 report is generated:

  1. Preview — show count of new findings, duplicates, updates
  2. Deduplication — match on file + title (>80% fuzzy match)
  3. Ask user — sync all / S0+S1 only / preview diff / skip
  4. Execute — append accepted findings to MASTER_DEBT.jsonl
  5. Verify — confirm TDMS item count after sync

Finding JSONL Schema

{
  "id": "SYST-2026-02-18-D07-003",
  "domain": 7,
  "domain_name": "Cloud Functions",
  "check_id": "7.2",
  "severity": "S1",
  "effort": "E2",
  "category": "correctness",
  "title": "Short title < 80 chars",
  "description": "Full description",
  "file": "relative/path.ts",
  "line": 287,
  "evidence": "Actual code or output",
  "suggested_fix": "How to fix",
  "status": "accepted|rejected|deferred",
  "suggestion_text": "Recommendation shown to user",
  "counter_argument": "Why opposite decision valid",
  "related_findings": [
    "D07-001"
  ],
  "detected_at": "ISO8601",
  "reviewed_at": "ISO8601"
}

Severity & Effort Scales

SevNameMeaningResponse
S0CriticalSecurity breach, data loss, app crashFix immediately
S1HighSignificant bug, security risk, UX breakFix this sprint
S2MediumModerate issue, tech debt, minor UXSchedule fix
S3LowCosmetic, optimization, nice-to-haveBacklog
EffNameMeaning
E0MinutesQuick fix, config change
E1< 1 hrSmall code change, one file
E2HoursMulti-file change, design work
E3DaysMajor refactor, new subsystem

Version History

VersionDateDescription
4.02026-02-1823-domain interactive audit with suggestions and TDMS sync
3.12026-02-14Extract reference docs: wave details, recovery, triage guide
3.02026-02-149-domain coverage: add enhancements + ai-optimization
2.12026-02-03Added Triage & Roadmap Integration with priority scoring
2.02026-02-02Staged execution (4+2+1), S0/S1 escalation, checkpoints
1.02026-01-28Initial version - flat parallel execution of all 6 audits

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.