deep-audit
Repository-wide consistency audit for skills, hooks, rules, and docs.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Repository-wide consistency audit for skills, hooks, rules, and docs.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | deep-audit |
| description | Repository-wide consistency audit for skills, hooks, rules, and docs. |
Run a comprehensive consistency audit across the entire repository, fix all issues found, and loop until clean.
Run these 4 audit passes. If the user explicitly requested delegated or parallel audit work, you may launch them as parallel audit subagents; otherwise execute the same passes locally:
Focus: README.md, rules/workflow-overview.md, .codex/hooks.json, and the three active hook scripts
Focus: hooks/*.py and hooks/*.sh
/tmp/ usage for persistent state (prefer plugin-relative storage or ~/.codex/sessions/ only when session-scoped persistence is intentional)[:8] across all hooks)try/except with sys.exit(0))from __future__ import annotations for Python 3.8+ compatibilitysource not type for SessionStart).codex/hooks.json resolves to the three plugin hook scripts under plugins/social-science-research/hooks/Focus: skills/*/SKILL.md, agents/*.md, and rules/*.md
paths: reference existing directoriesagents/plugins/social-science-research/templates/..., templates/..., then embedded fallback)Focus: README.md, rules/workflow-overview.md, skills/research-setup/SKILL.md
Categorize each finding:
Common false alarms to watch for:
## Title inside ::: divs — this is standard syntax, NOT a heading bugApply fixes in parallel where possible. For each fix:
This plugin does not maintain a Quarto source file. If README.md,
rules/workflow-overview.md, or the project metadata generation logic were modified,
verify they are still consistent — no render step is needed.
After fixing, rerun the 4 audit passes to verify.
Max loops: 5 (to prevent infinite cycling)
These are real bugs found across 7 rounds — check for these specifically:
| Bug Pattern | Where to Check | What Went Wrong |
|---|---|---|
| Stale counts ("19 skills" → "21") | Guide, README, landing page | Added skills but didn't update all mentions |
| Hook exit codes | All Python hooks | Exit 2 in PreCompact silently discards stdout |
| Hook field names | post-compact-restore.py | SessionStart uses source, not type |
| State in /tmp/ | All Python hooks | Should use plugin-local storage or ~/.codex/sessions/<hash>/ only when session persistence is intentional |
| Hash length mismatch | All Python hooks | Some used [:12], others [:8] |
| Missing fail-open | Python hooks __main__ | Unhandled exception → exit 1 → confusing behavior |
| Python 3.10+ syntax | Type hints like `dict | None` |
| Missing directories | quality_reports/specs/ | Referenced in rules but never created |
| Always-on rule listing | Guide + README | meta-governance omitted from listings |
| macOS-only commands | Skills, rules | open without xdg-open fallback |
| Hook discovery path | hook wiring | Codex reads <repo>/.codex/hooks.json, not plugin-bundled hooks.json |
After each round, report:
## Round N Audit Results
### Issues Found: X genuine, Y false alarms
| # | Severity | File | Issue | Status |
|---|----------|------|-------|--------|
| 1 | Critical | file.py:42 | Description | Fixed |
| 2 | Medium | file.qmd:100 | Description | Fixed |
### Verification
- [ ] No stale counts (grep confirms)
- [ ] All hooks have fail-open + future annotations
- [ ] All Codex skill frontmatter parses cleanly
- [ ] README.md, workflow docs, and project metadata template agree
### Result: [CLEAN | N issues remaining]
End-to-end empirical data analysis workflow for R or Python projects.
Find and assess datasets for a research question.
Systematic literature review workflow using parallel librarian agents.
Structured interview and project-spec workflow for new research ideas.
Proofreading workflow for academic manuscripts and papers.
Verify that paper claims match analysis outputs before submission.