ag-audit-context
Audit project context routing, shared-skill discoverability, and Claude/Codex wiring.
Skill by ngxccc
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ngxccc-ag-audit-context
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/ag-audit-context
What's inside
- Skill name
ag-audit-context- Description
- Audit project context routing, shared-skill discoverability, and Claude/Codex wiring. Use when context docs or skill surfaces move, split, or drift.
- License
- MIT
- Instructions
- 91 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (12)
- SKILL.md
- audit-context.md · references/
- skill-routing-policy.json · references/
- generate-skills-catalog.mjs · scripts/
- shared-skill-utils.mjs · scripts/
- validate-confusable-skills.mjs · scripts/
- validate-context-discovery.mjs · scripts/
- validate-protocol-discovery.mjs · scripts/
- validate-skill-cross-refs.mjs · scripts/
- validate-skill-dependencies.mjs · scripts/
- validate-skill-keywords.mjs · scripts/
- validate-skill-routing.mjs · scripts/
SKILL.md (first lines)
# Audit Context
## When to Apply
Use this skill when working with ag-audit-context workflows, tasks, or system specifications.
## How to Use
Refer to the workflow instructions and command references detailed below.
> **Output style:** Follow `process/development-protocols/communication-standards.md` — answer-first, plain language, no unexplained jargon, TL;DR on long responses.
Use this skill to verify that the project's durable context layer is discoverable and organized.
Optional input: a context group, agent, skill, or folder scope to prioritize during the audit.
## Workflow
0. Run `find process/context/ -type f | sort` to get the full file listing before routing.
This ensures no context file is silently skipped when the router is incomplete or drifted.
1. Read `process/context/all-context.md` for the context routing protocol.
2. Read `references/audit-context.md` for the full audit process.
3. Run the context discovery validator:
```bash
node .claude/skills/ag-audit-context/scripts/validate-context-discovery.mjs
```
3a. Run the protocol discovery frontmatter validator (enforces discovery frontmatter on every
`process/development-protocols/**/*.md`, recursive incl. `ag-system-behavior/`; `note.md` is the
only intentional exclusion):
```bash
node .claude/skills/ag-audit-context/scripts/validate-protocol-discovery.mjs
```
4. Run the shared skill routing coverage validator:
```bash
node .claude/skills/ag-audit-context/scripts/validate-skill-routing.mjs
```
5. Run the skill cross-reference validator:
```bash
node .claude/skills/ag-audit-context/scripts/validate-skill-cross-refs.mjs
```
6. Run the skill dependency/confusable analysis:
```bash
node .claude/skills/ag-audit-context/scripts/validate-skill-dependencies.mjs
node .claude/skills/ag-audit-context/scripts/validate-confusable-skills.mjs
```
7. Regenerate or check the machine-readable skill catalog:
```bash
node .claude/skills/ag-audit-context/scripts/generate-skills-catalog.mjs --write
node .claude/skills/ag-audit-context/scripts/generate-skills-catalog.mjs --check
```
8. Validate that every SKILL.md carries `trigger_keywords` + a valid `layer`
(`contract`|`helper`) and that the catalog is in sync:
```bash
node .claude/skills/ag-audit-context/scripts/validate-skill-keywords.mjs
```
9. If any script reports failures, inspect the referenced files and patch the smallest
relevant surface.
10. Re-run the failed validators until they pass.
For agent/skill harness validation (agent parity, skill frontmatter, README.md sync, protocol wiring), use the `audit-vc` skill.
## Context Bootstrap (when process/context/ doesn't exist or needs full init)
Use when initializing a new project's context layer from scratch:
1. Run `ag-scout` in parallel across major source directories (skip `.git`, `node_modules`, `.claude`, caches) to gather codebase summaries.
2. Create `process/context/all-context.md` (routing table, architecture, conventions) and group `all-{group}.md` entrypoints for any durable domains identified.
3. **Parallel reader strategy for existing context files** — before updating, spawn subagents proportional to file count: 1-3 files read directly; 4-6 files use 2-3 reader agents; 7+ files use 4-5 reader agents (max 5), distributing by LOC.
4. After generating or updating context files, run `find process/context -name '*.md' -print0 | xargs -0 wc -l | sort -rn` — files over 800 LOC should be split into a context group or the user asked.
5. Finish by running the discovery validator (step 3 above) before declaring done.
## Rules
- Treat `.claude/skills/` as canonical; `.agents/skills/` is the Codex discovery symlink.
- Treat `.claude/skills/ag-audit-context/references/skill-routing-policy.json` as the explicit allowlist for intentionally non-routed shared skills.
- Do not move large context files without updating `process/context/all-context.md`.
- Do not delete compatibility wrappers unless no current reference points to them.
- Keep context groups durable-domain based, not one group per temporary feature.
- When updating agents, mirror Claude markdown and Codex TOML surfaces together.
- Treat validator warnings as audit findings unless the user asks for a strict cleanup.
- Prefer validator-backed routing truth over adding more soft prose.
- Treat process/context/generated-skills-catalog.json as the machine-readable catalog owned by `audit-context`.
## References
- [process/context/all-context.md](process/context/all-context.md)From ngxccc/agent-skills-kit, MIT.
More from ngxccc/agent-skills-kit
- 0.529score
ag-feasibility-test
ngxccc
Use when a SPEC, INNOVATE, or VALIDATE (Layer 2) approach hinges on an unverified runtime/library/external mechanism: run a probe from the 8-family taxonomy…
SkillBFreshness: BClaude Code +9 - 0.529score
ag-generate-plan
ngxccc
Create or update implementation plans in the repo's SIMPLE, COMPLEX, or PHASE PROGRAM format.
SkillBFreshness: BClaude Code +9 - 0.529score
ag-docs
ngxccc
Trigger keywords: docs, README, document codebase, ADR, architectural decision, decision record, design doc, architecture record, RFC, request for comments…
SkillBFreshness: BClaude Code +9 - 0.529score
ag-audit-plans
ngxccc
Audit active project plan files for staleness, completion, and routing truth.
SkillBFreshness: BClaude Code +9 - 0.529score
ag-brainstorming
ngxccc
Use when starting creative work, building components, or modifying behavior.
SkillBFreshness: BClaude Code +9 - 0.529score
ag-generate-context
ngxccc
Generate or update the project's authoritative repository context at process/context/all-context.md.
SkillBFreshness: BClaude Code +9 - 0.529score
ag-generate-spec
ngxccc
Create or update a product-discovery SPEC (requirements doc) for user review.
SkillBFreshness: BClaude Code +9 - 0.528score
ag-audit-ag
ngxccc
Use when auditing agent harness health, Claude/Codex agent parity, skill registry consistency, and protocol wiring.
SkillBFreshness: BClaude Code +9 - 0.526score
ag-agent-strategy-compare
ngxccc
Evaluate 4 execution strategies (sequential, parallel-subagents, workflow, agent-team) for a phase or fan-out task.
SkillBFreshness: BClaude Code +9 - 0.526score
ag-debug
ngxccc
Debug systematically with root-cause analysis before fixes.
SkillBFreshness: BClaude Code +9 - 0.526score
ag-generate-closeout
ngxccc
Generate the post-EXECUTE closeout packet for a plan or phase.
SkillBFreshness: BClaude Code +9 - 0.526score
ag-autoresearch
ngxccc
Loop: find gaps → fix → repeat until agents find no gaps or a metric goal is hit.
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 2, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/ngxccc/agent-skills-kit
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ngxccc
- 0.570score
git-flow
ngxccc
Shape branches, slice atomic commits, create pull requests via the 3-Tier PR Matrix, or create sub-issues.
SkillAFreshness: AClaude Code +9 - 0.544score
codebase-design
ngxccc
Shared vocabulary for designing deep modules.
SkillAFreshness: AClaude Code +9 - 0.544score
diagnosing-bugs
ngxccc
Diagnosis loop for hard bugs and performance regressions.
SkillAFreshness: AClaude Code +9 - 0.544score
tdd
ngxccc
Test-driven development.
SkillAFreshness: AClaude Code +9 - 0.544score
domain-modeling
ngxccc
Build and sharpen a project's domain model.
SkillAFreshness: AClaude Code +9 - 0.541score
improve-codebase-architecture
ngxccc
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
SkillAFreshness: AClaude Code +9
Cite this page
ag-audit-context skill. Agent Mart. https://agentmart.dev/skills/ngxccc-ag-audit-context (last updated 2026-10-24)