cross-validate-artifacts
Skill262 starsChanged 8 months agoMITView on GitHub
Cross-validate documentation and artifacts across the codebase for consistency, conflicts, and contradictions. Use when users ask to "cross-validate", "validate docs", "check documentation consistency", "audit documentation", or find conflicts/contradictions in docs. Supports automatic fixing with "validate and fix" argument. Runs parallel subagents for efficient validation across categories (domain-models, agent-system, tech-stack, architecture, cli-commands). Part of the Shep autonomous SDLC platform — https://shep.bot
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- packages/CLAUDE.mdCLAUDE.md
- src/CLAUDE.mdCLAUDE.md
- architecture-reviewerSkill
- mermaid-diagramsSkill
- react-flowSkill
- shadcn-uiSkill
- shep-kit:commit-prSkill
- shep-kit:fast-loopSkill
- shep-kit:implementSkill
- shep-kit:mergedSkill
- shep-kit:new-feature-fastSkill
- shep-kit:new-featureSkill
- shep-kit:parallel-taskSkill
- shep-kit:planSkill
- shep-kit:researchSkill
- shep-kit:statusSkill
- shep:ui-componentSkill
- shep-workstreamsSkill
- tsp-modelSkill
- vercel-react-best-practicesSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 14 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Use this skill when the user:
- Distinctive: line 27
No arguments: Perform validation and present results summary table, then ask user if they want to fix
- Distinctive: line 79
Read all relevant files for its category
- Distinctive: line 118
Ask: "Would you like me to fix these violations?"
- Distinctive: line 119
Wait for user confirmation before proceeding
- Distinctive: line 143
Read the file(s) needing fixes
- Distinctive: line 150
Read before edit: Always read the full file before making changes
- Distinctive: line 151
Minimal changes: Only fix the specific discrepancy, don't refactor
- Distinctive: line 153
No new content: Don't add features or documentation beyond fixing inconsistencies
- Distinctive: line 154
Verify after fix: Ensure the fix doesn't introduce new conflicts
- Distinctive: line 162
All entities documented (Feature, Task, ActionItem, Artifact, Requirement)
- Distinctive: line 185
Use case names match (PascalCase vs kebab-case)
- Distinctive: line 224
Always use subagents for both validation and fixing to maximize efficiency
- Distinctive: line 227
After fixing, optionally re-run validation to confirm all issues resolved
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Cross-Validate Artifacts Skill
Cross-validate documentation and artifacts across the codebase for consistency, conflicts, and contradictions.
Trigger
Use this skill when the user:
- Asks to "cross-validate", "validate docs", "check documentation consistency"
- Wants to find conflicts or contradictions in documentation
- Asks to audit or review documentation for accuracy
- Uses
/cross-validate-artifactscommand
Arguments
- No arguments: Perform validation and present results summary table, then ask user if they want to fix
validate and fixorfix: Perform validation AND automatically fix all issues found--category <name>: Validate specific category only (domain-models, agent-system, tech-stack, architecture, cli-commands)
Validation Process
Step 1: Identify Documentation Sources
Gather all documentation files to validate:
Root docs:
- README.md
- CLAUDE.md
- AGENTS.md
- CONTRIBUTING.md
docs/ folder:
- docs/architecture/*.md
- docs/concepts/*.md
- docs/guides/*.md
- docs/development/*.md
- docs/api/*.mdStep 2: Break Into Validation Categories
Split validation into parallel sub-tasks for efficiency. Each category should be handled by a dedicated subagent:
| Category | Description | Key Files to Compare |
| domain-models | Entity definitions, fields, enums | CLAUDE.md, docs/api/domain-models.md, docs/concepts/*.md |
| agent-system | Agent names, tools, state schema, workflow | AGENTS.md, docs/architecture/agent-system.md, docs/guides/langgraph-agents.md |
| tech-stack | Framework versions, library references | README.md, CLAUDE.md, docs/architecture/overview.md |
| architecture | Layer descriptions, folder structure, patterns | CLAUDE.md, docs/architecture/*.md, CONTRIBUTING.md |
| cli-commands | pnpm scripts, paths, configuration | CLAUDE.md, docs/development/.md, docs/guides/.md |
Step 3: Launch Parallel Subagents
CRITICAL: Use the Task tool with subagent_type=Explore to run validation categories in parallel.
Launch 5 subagents simultaneously:
1. Domain models validation subagent
2. Agent system validation subagent
3. Technology stack validation subagent
4. Architecture validation subagent
5. CLI commands validation subagentEach subagent should:
- Read all relevant files for its category
- Compare definitions, names, values across files
- Identify discrepancies with exact file:line references
- Return structured list of issues found
Step 4: Compile Results
Aggregate all subagent results into a summary table:
## Validation Results Summary
### Critical Violations (Must Fix)
| # | Category | Issue | Files Affected | Details |
| --- | -------- | ----- | -------------- | ------- |
| 1 | ... | ... | file.md:line | ... |
### High Priority Violations
| # | Category | Issue | Files Affected | Details |
| --- | -------- | ----- | -------------- | ------- |
### Medium Priority Violations
...
### Consistent Items (No Issues)
| Category | Status |
| -------- | ---------- |
| ... | Consistent |Step 5: Present or Fix
If no "fix" argument provided:
- Present the summary table to the user
- Ask: "Would you like me to fix these violations?"
- Wait for user confirmation before proceeding
If "fix" argument provided:
- Present the summary table
- Automatically proceed to fix all violations using parallel subagents
Fixing Process
Launch Fix Subagents in Parallel
For each category with violations, launch a dedicated fix subagent:
Task tool with subagent_type=general-purpose for each fix task:
- Fix agent system references (CrewAI → LangGraph)
- Fix domain model definitions (add missing fields/entities)
- Fix package manager references (npm → pnpm)
- Fix architecture descriptions
- Fix path referencesEach fix subagent should:
- Read the file(s) needing fixes
- Apply minimal, targeted edits using the Edit tool
- Preserve existing formatting and structure
- Report what was changed
Safety Guidelines for Fixes
- Read before edit: Always read the full file before making changes
- Minimal changes: Only fix the specific discrepancy, don't refactor
- Preserve style: Match existing formatting, indentation, tone
- No new content: Don't add features or documentation beyond fixing inconsistencies
- Verify after fix: Ensure the fix doesn't introduce new conflicts
Validation Checks by Category
Domain Models Checks
- Entity fields match across CLAUDE.md, api/domain-models.md, concepts/*.md
- Enum values consistent (SdlcLifecycle, TaskStatus, ArtifactType)
- All entities documented (Feature, Task, ActionItem, Artifact, Requirement)
- Field types match (string, number, arrays, etc.)
Agent System Checks
- Framework name consistent (LangGraph vs CrewAI)
- Agent/node naming consistent (class names vs function names)
- State schema fields match across docs
- Tool names consistent (snake_case tool names, camelCase variables)
- Workflow stages match
Tech Stack Checks
- Framework versions specified consistently
- Library names match (Next.js, Vite, Vitest, etc.)
- Package manager consistent (pnpm everywhere)
- Database technology consistent (SQLite, LanceDB)
Architecture Checks
- Layer names and hierarchy consistent
- Folder structure matches across docs
- Dependency rules documented consistently
- Use case names match (PascalCase vs kebab-case)
CLI Commands Checks
- pnpm script names consistent
- Command descriptions match
- Data paths consistent (~/.shep/repos/...)
- Config file paths consistent
- Port numbers consistent (3030)
Example Output
## Documentation Cross-Validation Results
### Critical Violations (4 issues)
| # | Category | Issue | Files | Details |
| --- | ------------- | ------------------- | ------------------ | --------------------------------------------------- |
| 1 | agent-system | CrewAI vs LangGraph | CLAUDE.md:59,106 | Uses "CrewAI-style" but implementation is LangGraph |
| 2 | cli-commands | npm vs pnpm | building.md:20-358 | Uses `npm run` instead of `pnpm` |
| 3 | domain-models | Missing entity | CLAUDE.md | Requirement entity not documented |
| 4 | agent-system | Wrong naming | CLAUDE.md:110-113 | Uses class names instead of node functions |
### Consistent Items
| Category | Status |
| ----------------- | ---------- |
| Database (SQLite) | Consistent |
| Build tool (Vite) | Consistent |
| Data paths | Consistent |
---
Would you like me to fix these violations?Notes
- Always use subagents for both validation and fixing to maximize efficiency
- Present results in clean markdown tables for readability
- Prioritize fixes by severity (Critical > High > Medium > Low)
- After fixing, optionally re-run validation to confirm all issues resolved
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.

