From tlab
Deep consistency audit of the entire research repository. Launches 5 parallel specialist agents to find stale references, broken paths, skill/rule mismatches, and cross-document inconsistencies. Then fixes all issues and loops until clean. Use when: after broad changes, before releases, or when user says "audit", "find inconsistencies", "check everything".
How this skill is triggered — by the user, by Claude, or both
Slash command
/tlab:deep-auditThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run a comprehensive consistency audit across the entire repository, fix all issues found, and loop until clean.
Run a comprehensive consistency audit across the entire repository, fix all issues found, and loop until clean.
This skill runs in projects using the tlab plugin. Key locations:
.claude/skills/). AGENTS.md (canonical) lists them as /tlab:*..claude/agents/)..claude/rules/_plugin_*.md via the SessionStart hook.hooks/hooks.json..claude/settings.json in the project.Launch these 5 agents simultaneously using Agent with subagent_type=general-purpose:
Focus: AGENTS.md (canonical), CLAUDE.md (pointer), README.md
AGENTS.md lists /tlab:* commands that match available plugin skillsCLAUDE.md is a pointer that @imports AGENTS.md and contains the literal tlab marker; no
GEMINI.md exists (Antigravity loads AGENTS.md directly)AGENTS.md and README are accurate and runnableFocus: .claude/settings.json, .claude/rules/_plugin_*.md
settings.json is valid JSON with sensible permissionssettings.json contains extraKnownMarketplaces pointing to tasdemir-lab/tlab-research.claude/rules/_plugin_*.md) have valid content (not corrupted copies)Focus: .claude/rules/_plugin_*.md (synced from plugin)
paths: and file references point to existing directoriesFocus: README.md, AGENTS.md, code/, paper/, .gitignore
.gitignore covers all private directories mentioned in README (_lab/, _lit/, _trash/, tmp/).gitignore ignores render artifacts as described (.html, .md in code/).gitignore ignores plugin-synced rules (_plugin_*)code/code/helpers/_load_all.R (if it exists) sources all helper files that existAGENTS.md exists at the stated locationpaper/preamble.tex (if referenced) existscode/_quarto.yml settings (if exists)setup_project.sh (if exists) creates the directories described in READMEFocus: All skill files (plugin skills/*/SKILL.md AND user-level ~/.claude/skills/*/SKILL.md), global ~/.claude/CLAUDE.md, project AGENTS.md (canonical instruction file), .claude/rules/*.md
AGENTS.md + global ~/.claude/CLAUDE.md): git merge strategy, commit style, build commands, code style, "always/never" instructions--merge)/Users/, /home/)Categorize each finding:
Common false alarms to watch for:
[BRACKETS] — this is intentional in the template_lab/ directories — expected in a fresh projectrenv.lock or uv.lock — created on first use, not part of templatedata/raw/ — data is gitignored by designcode/*.qmd scripts — template provides structure, not content.claude/rules/_plugin_*.md files — created on first session by plugin hookApply fixes in parallel where possible. For each fix:
After fixing, launch a fresh set of 5 agents to verify.
Max loops: 5 (to prevent infinite cycling)
Save the final audit report to _lab/evaluations/YYYY-MM-DD_deep-audit.md.
| Bug Pattern | Where to Check | What Went Wrong |
|---|---|---|
| Stale skills table | AGENTS.md vs plugin skills | Added/removed plugin skill but didn't update AGENTS.md |
| Wrong bibliography path | AGENTS.md, README, code/_quarto.yml | Changed location but didn't update all references |
| Missing .gitignore entries | .gitignore vs README | Documented folder as "gitignored" but didn't add pattern |
| Broken helper loading | code/helpers/_load_all.R | Added helper file but didn't add source() call |
| Hardcoded paths | rules, settings | Used /Users/... instead of relative path |
| README tree drift | README.md vs find . -type d | Restructured folders but didn't update README tree |
| Rule contradictions | Between _plugin_*.md rule files | Two rules prescribe conflicting quality thresholds |
| settings.json drift | .claude/settings.json | Marketplace pointer or permissions changed |
| Missing plugin marker | AGENTS.md (or CLAUDE.md pointer) | Missing "tlab" keyword in both prevents rule sync |
After each round, report:
## Round N Audit Results
### Issues Found: X genuine, Y false alarms
| # | Severity | File | Issue | Status |
|---|----------|------|-------|--------|
| 1 | Critical | AGENTS.md:82 | Skill table lists /tlab:foo but plugin has no such skill | Fixed |
| 2 | Medium | .gitignore:15 | Missing pattern for _plugin_* | Fixed |
### Verification
- [ ] Skills table matches plugin skills
- [ ] All paths in README exist on disk
- [ ] .gitignore covers all private directories
- [ ] No hardcoded absolute paths in infrastructure
- [ ] Rules don't contradict each other
- [ ] Plugin marketplace pointer is correct
### Result: [CLEAN | N issues remaining]
npx claudepluginhub tasdemir-lab/tlab-research --plugin tlabGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.