setup-guardian
Skill0 starsChanged 2 months agoMITView on GitHub
Static health checks for this repo: dist/ freshness, install targets, skill counts, action SHA pins, CI gate, external lock, subprocess env=. Use when changing skills, install/build/workflows, or for a repo health check.
In this repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agentkit-auditSkill
- chart-designSkill
- context-budgetSkill
- context-compressorSkill
- daily-standupSkill
- data-architectSkill
- data-eng-routerSkill
- data-quality-standardsSkill
- data-storytellingSkill
- debug-loopSkill
- doc-standardsSkill
- ext-archifySkill
- ext-awsSkill
- ext-azureSkill
- ext-cli-opsSkill
- ext-codegraphSkill
- ext-databricksSkill
- ext-diagramsSkill
- ext-gap-discoverySkill
- ext-gcpSkill
- ext-hallmarkSkill
- ext-meta-museSkill
- ext-reaSkill
- ext-security-auditSkill
- ext-seoSkill
- ext-slidesSkill
- ext-systems-designSkill
- ext-ui-uxSkill
- frontend-motion-3dSkill
- genai-engineeringSkill
- humanizerSkill
- mcp-security-reviewSkill
- meeting-to-actionsSkill
- memorySkill
- memory-syncSkill
- ml-lifecycleSkill
- orchestrateSkill
- pipeline-scaffoldSkill
- prompt-enhancerSkill
- pr-reviewSkill
- session-insightsSkill
- skill-forgeSkill
- smart-navigatorSkill
- spec-writerSkill
- token-saverSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
After a fix run, re-run the doctor and confirm fixed=True paths are clean before pushing.
- Very specific: line 96
Run one check (--check <name>) when you only touched one area.
≈ “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.
Files
Setup Guardian
Cheap static checks for mistake classes that already hit this repo
(whole-needs CI gate, typo'd action SHA, bare subprocess env= dropping
Windows vars, hand-written skill counts). reference/lessons.md is the
registry; scripts/doctor.py is the enforcement. Run after any change to
skills, install.sh, scripts/, or .github/workflows/.
Procedure
Run the doctor and read the report.
python3 skills/setup-guardian/scripts/doctor.pyHuman lines per check:
[PASS|WARN|FAIL] <name>: <message>, with a-> <remediation>hint under each failure. Exit 1 if anything fails, 0 otherwise. Use--check <name>to run a single check (e.g.--check pinned_shasafter touching a workflow).Use
--fixfor the safe auto-fixes only. The doctor rebuildsdist/, rewrites the README skill count, and regenerates the site catalog — the three generated artifacts that must never be hand-edited. Everything else (bad SHA pins, broken install targets, a wrong CI gate, lock drift, bareenv=) gets a remediation, not a fix, because each needs a human decision.python3 skills/setup-guardian/scripts/doctor.py --fixAfter a fix run, re-run the doctor and confirm
fixed=Truepaths are clean before pushing.--watchfor scheduled runs. Prints exactly one JSON object to stdout —{"ok", "failures", "warnings", "checks": [...]}— and exits non-zero on any failure. Nothing else goes to stdout, so it is safe to pipe into logs. Example cron entry (adjust the path to your checkout):0 9 * * * /usr/bin/python3 /path/to/agentkit/skills/setup-guardian/scripts/doctor.py --watch >> /var/log/agentkit-doctor.log 2>&1Stale third-party pins (report only).
python3 scripts/check-external-updates.pyLists pinned external sources with newer upstream commits. Never auto-bump: review upstream changes, then update
external/skills.lock.jsonviascripts/sync-external.shas a deliberate change.
Check catalog
| Check | What it guards | Auto-fix |
dist_freshness | dist/ matches generated sources (scripts/build.py --check clean) | yes — rebuilds via scripts/build.py |
install_targets | install.sh symlinks exist and point at dist/; no stale manifest entries | no — re-run ./install.sh |
skill_count | README count, site/assets/skills.json, and the AGENTS.md table all agree with skills/ | yes — rewrites README count, regenerates catalog and dist/ |
pinned_shas | workflow action pins are full SHAs, none on the known-bad list | no — fix the pin, verify via git ls-remote |
ci_aggregator | CI success gate compares v.get("result"), not whole needs objects | no — hand-edit ci.yml |
external_lock | external/skills.lock.json schema and per-source fields; checkouts match locked SHAs | no — re-run scripts/sync-external.sh |
subprocess_env | no bare env={...} dicts that drop inherited environment (Windows SystemRoot) | no — build from os.environ |
Rules
- Every repeat-mistake class gets a LESSON entry in
reference/lessons.mdPLUS a doctor check. The registry is the memory; the doctor is the enforcement. A lesson without a check is a hope; a check without a lesson is unexplained. - Never hand-write skill counts. The README count line,
site/assets/skills.json, and the AGENTS.md table are all generated fromskills/— usemake buildordoctor.py --fix. - Verify new action SHA pins resolve before push.
git ls-remote https://github.com/<owner>/<repo>must list the pinned commit; add any caught typo'd SHAs toKNOWN_BAD_SHASindoctor.py. doctor.pystays stdlib-only and self-contained. Noscripts.libimport, no third-party deps — it must run on any machine with Python 3, including fresh CI runners.- Run the doctor after adding a skill or touching
install.sh,scripts/build.py, or.github/workflows/. Then runmake buildandmake validatebefore pushing.
Token economy
Run one check (--check <name>) when you only touched one area; --json for machine parsing; --fix once, then make build and verify, don't loop.
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
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.

