.claude/skills/ops-factory-sync/SKILL.md
Audit factory patterns against actual components and update drift
npx skillsauth add d0nghyun/neuron ops-factory-syncInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
/ops-factory-syncKeep factory patterns aligned with reality. Detect drift between what factory documents say and what actually exists.
Glob .claude/agents/*.md # List all agents
Glob .claude/skills/*/SKILL.md # List all skills
Read .claude/settings.json # List all hooks
Read .claude/factory/README.md
Read RULES.md
For each component type, verify:
| Check | Source of Truth | Actual | |-------|----------------|--------| | Agent naming prefixes | factory/README.md § Naming | agents/.md filenames | | Skill naming prefixes | factory/README.md § Naming | skills//SKILL.md dirs | | Component types listed | factory/README.md § Selection Guide | existing components | | Hook registrations | settings.json | hooks/ scripts |
Compare enforcement hooks against RULES.md declarations:
Read RULES.md § Component Rules → extract required fields per type
Read .claude/hooks/validate-component.sh → extract enforced fields
| Check | Source of Truth | Enforcement |
|-------|----------------|-------------|
| Agent required fields | RULES.md § Component Rules | validate-component.sh for field in ... |
| Skill required fields | RULES.md § Component Rules | validate-component.sh for field in ... |
| Vault structure rules | RULES.md § Vault Rules | validate-vault.sh checks |
Flag if RULES.md declares fields that hooks don't enforce, or vice versa.
Flag:
--doc-gardening flag or CRON)Scan .claude/ and vault/ for stale docs and broken references.
Stale doc detection:
# Find .md files not modified in 30+ days
find .claude vault/ -name '*.md' -mtime +30 -not -path '*/node_modules/*'
Broken reference detection:
RULES.md, factory/README.md, vault/02-Projects/...)Scope: .claude/**/*.md, vault/**/*.md, root .md files
Report stale/broken docs in the drift section with type stale or broken_ref.
For each agent and skill, compute grade per factory/README.md § Quality Grades:
| Grade | Criteria | |-------|----------| | A | All frontmatter fields, <150 lines, SSOT refs only, success criteria present | | B | Required frontmatter, <200 lines, has execution steps | | C | Missing optional sections or 150-200 lines | | D | Missing required fields, >200 lines, or hardcoded content |
Process:
quality_grade in frontmatterquality_grade and quality_checked via EditGrading checks:
line_count < 150 AND has all fields AND refs only → A
line_count < 200 AND has required fields AND has steps → B
missing optional OR 150 ≤ line_count ≤ 200 → C
missing required OR line_count > 200 OR hardcoded → D
factory_sync:
timestamp: "{ISO date}"
components:
agents: {count}
skills: {count}
hooks: {count}
quality:
summary: {A: n, B: n, C: n, D: n}
changes:
- component: "{name}"
previous: "{old grade}"
current: "{new grade}"
reason: "{why}"
drift:
- type: "{naming | missing | orphan | structure | grade | stale | broken_ref}"
detail: "{description}"
suggestion: "{fix}"
status: clean | drift_detected
Only fix these automatically:
All other fixes: report only, let user decide.
databases
Notion schedule management. Query today/weekly schedules, add/modify/complete schedules.
testing
Recap session memory into vault and validate vault structure
testing
Counterfactual review of decision paths after Moderate+ tasks
tools
Create a release with version tag. Converts UNRELEASED.md to version file and creates git tag.