
Enhance Cross File
- 2 installs
- 931 repo stars
- Updated July 26, 2026
- avifenesh/awesome-slash
enhance-cross-file is a Claude Code skill that detects consistency problems spanning multiple agent, skill, and workflow files.
About
enhance-cross-file analyzes semantic consistency that spans multiple agent, skill, and workflow files, catching issues single-file analysis misses. It flags tools used in a body but missing from frontmatter, references to non-existent agents, duplicate instructions across files, and contradictory ALWAYS-vs-NEVER rules. All 8 patterns are medium certainty with no auto-fix, since cross-file changes need human review.
- Detects tools used in a prompt body but not declared in frontmatter
- Finds orphaned agents, missing referenced agents, and duplicate or contradictory rules
- Runs 8 cross-file patterns with no auto-fix (changes need human review)
Enhance Cross File by the numbers
- 2 all-time installs (skills.sh)
- Ranked #13,958 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
enhance-cross-file capabilities & compatibility
- Capabilities
- cross file consistency · agent reference audit · contradiction detection
- Use cases
- code review
What enhance-cross-file says it does
Analyze cross-file semantic consistency across agents, skills, and workflows.
**contradictory_rules**: One file says "ALWAYS X" while another says "NEVER X"
npx skills add https://github.com/avifenesh/awesome-slash --skill enhance-cross-fileAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 2 |
|---|---|
| repo stars | ★ 931 |
| Last updated | July 26, 2026 |
| Repository | avifenesh/awesome-slash ↗ |
What it does
Check that agents, skills, and workflows are consistent with each other across files.
Who is it for?
Finding contradictions and broken references across a set of agent and workflow files
Skip if: Reviewing a single file in isolation or auto-fixing the issues it finds
When should I use this skill?
The user asks to check consistency across agents, skills, and workflows
What you get
A grouped report of cross-file tool, workflow, and instruction inconsistencies.
- Cross-file analysis report
By the numbers
- Runs 8 cross-file patterns
- 0 patterns are auto-fixable
Files
enhance-cross-file
Analyze cross-file semantic consistency across agents, skills, and workflows.
Parse Arguments
const args = '$ARGUMENTS'.split(' ').filter(Boolean);
const targetPath = args.find(a => !a.startsWith('--')) || '.';Purpose
Detects issues that span multiple files - things single-file analysis misses:
- Tools used in prompt body but not declared in frontmatter
- Agent references that don't exist
- Duplicate instructions across files (maintenance burden)
- Contradictory rules (ALWAYS vs NEVER conflicts)
- Orphaned agents not referenced by any workflow
- Skill tool mismatches (allowed-tools vs actual usage)
Workflow
1. Run Analyzer - Execute the JavaScript analyzer to get findings:
node -e "const a = require('./lib/enhance/cross-file-analyzer.js'); console.log(JSON.stringify(a.analyze('.'), null, 2));"For a specific path: a.analyze('./plugins/enhance')
2. Parse Results - The analyzer returns JSON with summary and findings 3. Report - Return findings grouped by category
The JavaScript analyzer (lib/enhance/cross-file-analyzer.js) implements all cross-file detection. The patterns below are reference documentation.
Detection Patterns
1. Tool Consistency (MEDIUM Certainty)
tool_not_in_allowed_list: Tool used in prompt body but not in frontmatter tools: list
# Frontmatter declares:
tools: Read, Grep
# But body uses:
Use Write({ file_path: "/out" }) # <- Not declared!skill_tool_mismatch: Skill's allowed-tools doesn't match actual tool usage in skill body
2. Workflow Consistency (MEDIUM Certainty)
missing_workflow_agent: subagent_type: "plugin:agent-name" references non-existent agent
orphaned_prompt: Agent file exists but no workflow references it (may be entry point - check manually)
incomplete_phase_transition: Workflow phase mentions "Phase N" but no corresponding section
3. Instruction Consistency (MEDIUM Certainty)
duplicate_instructions: Same MUST/NEVER instruction in 3+ files (extract to shared location)
contradictory_rules: One file says "ALWAYS X" while another says "NEVER X"
Output Format
## Cross-File Analysis
**Files Analyzed**: {agents} agents, {skills} skills, {commands} commands
### Tool Consistency ({n})
| Agent | Issue | Fix |
|-------|-------|-----|
| exploration-agent | Uses Write but not in tools list | Add Write to frontmatter |
### Workflow Issues ({n})
| Source | Issue | Fix |
|--------|-------|-----|
| workflow.md | References nonexistent agent | Check spelling or create agent |
### Instruction Consistency ({n})
| Instruction | Files | Fix |
|-------------|-------|-----|
| "NEVER push --force" | 4 files | Extract to CLAUDE.md |Constraints
- All patterns are MEDIUM certainty (require context)
- No auto-fix (cross-file changes need human review)
- Skip content inside
<bad-example>,<bad_example>,<badexample>tags - Skip content inside code blocks with "bad" in info string
- Entry point agents (orchestrator, validator, discoverer) are not orphaned
Pattern Statistics
| Category | Patterns | Auto-Fixable |
|---|---|---|
| Tool Consistency | 2 | 0 |
| Workflow | 3 | 0 |
| Consistency | 3 | 0 |
| Total | 8 | 0 |
Related skills
FAQ
Does enhance-cross-file auto-fix issues?
No, all patterns are medium certainty with no auto-fix because cross-file changes need human review.
What does it detect?
Undeclared tools, missing or orphaned agent references, duplicate instructions, and contradictory ALWAYS-vs-NEVER rules across files.