Install
$ agentstack add skill-popschlock-claude-harness-generator-validate-environment ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Critical
This skill validates an EXISTING environment. It is read-only with respect to the environment (writes only the validation report). The authoritative checklist lives in Docs/Templates/References/validation-guide.md -- load that at Step 2 rather than relying on any list in this file. The guide is updated as standards evolve; duplicating it here would drift.
What this skill does
- Get the environment path from the user
- Detect environment shape (single or hub) and read the relevant GENESIS/ARCHITECTURE files
- Load the current validation checklist from validation-guide.md
- Run every applicable check
- Write a validation report
- Present results in plain language and offer fixes
Steps
Step 1: Get the environment path
Ask the user for the path to the environment to validate. If the current directory contains a .claude/ directory or CLAUDE.md, offer to validate it.
Verify the path exists and contains at least one of:
.claude/directoryCLAUDE.mdfileDocs/Environment/HUB_GENESIS.md(hub case -- directory itself may not have.claude/)
If none is found, report "No Claude Code environment found at this path" and stop.
Step 2: Detect shape
Check for /Docs/Environment/HUB_GENESIS.md.
- If present: shape is HUB. Read HUBGENESIS.md and HUBARCHITECTURE.md (if it exists) plus every per-area GENESIS.md and ARCHITECTURE.md listed in the work-area registry.
- If absent: shape is SINGLE. Read
/Docs/Environment/GENESIS.mdandARCHITECTURE.mdif they exist.
Also detect HUBLIKEUNDECLARED: sibling environments (each a full .claude/ + CLAUDE.md) under the target without a parent HUB_GENESIS.md. Report this in the output so the user can consider declaring a hub via /upgrade-environment.
Step 3: Load the current validation checklist
Read Docs/Templates/References/validation-guide.md in its entirety. It contains:
- Structural checks
- Routing and logic checks
- Size and quality checks
- Conditional checks (triggered by specific GENESIS/ARCHITECTURE contents)
- Hub-mode checks (run only when shape is HUB)
Also read Docs/AgentPlaybooks/EnvironmentValidation.md for functional-test scenarios and the smoke test template.
Step 4: Run every applicable check
Execute every check from the guide against the target. For hub environments, run the core checks against the parent AND each work area, then run the hub-only checks once at the parent level. Record PASS, WARN, or FAIL with details for each non-PASS result.
Do not invent checks not in the guide. Do not skip checks even if early ones fail -- a complete report is more useful than a short one.
Step 5: Write validation report
Write to /Docs/Environment/VALIDATION_REPORT.md using the report format from the validation guide. For hubs, include a "Per-area results" subsection per work area plus a "Hub-level results" section.
Step 6: Present results
Output a plain-language summary to the user:
- Overall status: PASS (everything looks good), WARN (some improvements possible), or FAIL (issues need fixing)
- For each FAIL: what is wrong, why it matters, how to fix it
- For each WARN: what could be improved
- If shape is HUBLIKEUNDECLARED: gently suggest running
/upgrade-environmentto declare it - Use plain language, not technical jargon
Step 7: Offer fixes
If FAIL or WARN issues were found:
- Offer to create a fix plan
- Group fixes by effort: quick (1-2 file edits), medium (new files needed), large (structural changes)
- Let the user choose which fixes to apply
Do NOT apply fixes automatically. This skill is read-only (except for the validation report).
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: Popschlock
- Source: Popschlock/Claude-Harness-Generator
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.