Loading...
Loading...
Implements the corrections found by /project-audit. Reads audit-report.md as spec and executes each required action. Trigger: /project-fix, apply audit corrections, fix claude project.
npx skill4agent add fearovex/claude-config project-fixImplements the corrections found by /project-audit. Reads audit-report.md as a spec and executes each required action.
/project-fix/project-audit → audit-report.md → /project-fix → /project-audit (verify)
(spec) (artifact) (apply) (verify)audit-report.md/project-auditFIX_MANIFEST.claude/audit-report.md❌ .claude/audit-report.md not found
This skill requires /project-audit to have been run first.
The audit report is the specification I implement.
Please run: /project-audit⚠️ The audit-report.md is [N] days old (generated: [date])
Options:
1. Use the existing report anyway (may be outdated)
2. Run /project-audit first for a fresh diagnosis
How would you like to proceed?project-fix| Stage | Responsibility | Output |
|---|---|---|
| Manifest intake | Read and validate | Parsed action lists, readiness to execute |
| Phase execution | Apply the permitted actions in severity and phase order | Created files, modified files, skip/failure outcomes |
| Final reporting | Record the run and present the resulting state | |
project-fix| Class | Typical examples | Side effects | Confirmation model |
|---|---|---|---|
| Automatic actions | create missing files, append missing sections, add safe markers | Yes | Executed inside the approved phase flow |
| Guided actions | delete duplicate local skills, optional phase execution decisions | Yes | Explicit confirmation required |
| Informational actions | | No automatic side effects | Report only |
project-fix.claude/commands/move-to-global~/.claude/skills/FIX_MANIFESTaudit-report.mdrequired_actions.critical[]required_actions.high[]required_actions.medium[]required_actions.low[]missing_global_skills[]orphaned_changes[]violations[]skill_quality_actions[]skippedrecommendation only📋 Fix Plan — [Project Name]
Based on audit from [date]
Current score: [XX]/100
Actions to execute:
❌ Critical : [N] actions
⚠️ High : [N] actions
ℹ️ Medium : [N] actions
💡 Low : [N] actions (optional)
Execute all corrections? (critical + high + medium)
S → Execute all recommended
C → Critical only (minimum for functional SDD)
R → Review one by one
N → Cancelmem_contextengramnonetype: install_skill
target: "[skill-name]"~/.claude/skills/type: update_file
target: .claude/CLAUDE.md
section: sdd_section/sdd-*## SDD — Spec-Driven Development
This project uses SDD. Artifacts are persisted to Engram.
| Command | Action |
| -------------------------- | ------------------------------------------- |
| `/sdd-explore <topic>` | Explore without committing to changes |
| `/sdd-propose <change>` | Create a change proposal |
| `/sdd-apply <change>` | Implement the task plan |
| `/sdd-verify <change>` | Validate implementation against specs |
| `/sdd-status` | View status of active changes |
Multi-phase flows (explore → propose → spec+design → tasks, or the full cycle) are handled by the orchestrator as meta-commands — type them directly in conversation, they do not appear as skills.
**Full flow**: explore → propose → spec + design → tasks → apply → verify → archivetype: create_file
target: ai-context/[file].md
template: [stack|architecture|conventions|known-issues|changelog-ai]package.jsonpyproject.tomltype: update_file
target: .claude/CLAUDE.md
section: tech_stacktype: add_registry_entry / remove_registry_entry
target: .claude/CLAUDE.md
section: skills_registry[MISSING FILE].claude/Recommended skill: react-19
Available at: ~/.claude/skills/react-19/SKILL.md
To install it in this project: /skill-add react-19⚠️ Architecture violations (require manual review):
- src/pages/api/payment.js:45 — Business logic in API route
- src/components/Cart.jsx:23 — Direct service import (should use hook)skill_quality_actionsskill_quality_actions[]Phase 5 — Skill Quality Actions
[N] actions found in Dimension 9
Actions to process:
[N] delete_duplicate — local skills that duplicate a global skill
[N] add_missing_section — local skills missing structural sections
[N] flag_irrelevant — skills potentially irrelevant to current stack (INFO)
[N] flag_language — skills with non-English content (INFO — manual fix)
[N] move-to-global — skills recommended for promotion to global catalog (manual)
Proceed with Phase 5? [Y/n]delete_duplicateaction_type: delete_duplicate⚠️ Duplicate skill found:
Local : [local_path]
Global : [global_counterpart]
Detail : [detail]
Delete local copy? [y/N]y.claude/skills/<name>/ai-context/changelog-ai.mdNskipped (user declined)skipped (already deleted)add_missing_sectionaction_type: add_missing_sectionfailed (file not found)SKILL.md---format:proceduralmissing_sections[]skipped (section already present)<!-- AUDIT: stub added by project-fixskipped (stub already added)docs/format-types.md| Resolved format | Missing section being added | Stub to insert |
|---|---|---|
| | Process stub (see below) |
| | Patterns stub (see below) |
| | Anti-patterns stub (see below) |
| any format | | Rules stub (see below) |
| any format | | Triggers stub (see below) |
## Rules<!-- AUDIT: stub added by project-fix [YYYY-MM-DD] — fill in before using this skill -->
## Rules
> Scaffold note: replace this text with the concrete constraints and invariants for this skill.## Process<!-- AUDIT: stub added by project-fix [YYYY-MM-DD] -->
## Process
> Scaffold note: replace this text with the real step-by-step process instructions.## Patterns<!-- AUDIT: stub added by project-fix [YYYY-MM-DD] -->
## Patterns
> Scaffold note: replace this text with the core patterns and examples for this technology or library.## Anti-patterns<!-- AUDIT: stub added by project-fix [YYYY-MM-DD] -->
## Anti-patterns
> Scaffold note: replace this text with the anti-patterns to avoid and their corrections.**Triggers**<!-- AUDIT: stub added by project-fix [YYYY-MM-DD] -->
**Triggers**: Replace this scaffold text with the slash command and natural-language triggers for this skill.ai-context/changelog-ai.mdflag_irrelevantaction_type: flag_irrelevantSKILL.md<!-- AUDIT: skill may be irrelevantskipped (already flagged)<!-- AUDIT: skill may be irrelevant to current project stack. Review and delete if unused. Added by project-fix [YYYY-MM-DD] -->ai-context/changelog-ai.mdflag_languageaction_type: flag_languageℹ️ Language violation in: [local_path]
Detail: [detail]
Action required: translate content to English manually.
This file has NOT been modified.ai-context/changelog-ai.mdmove-to-globalℹ️ Two-tier skill model reminder:
.claude/skills/ is project-local (versioned in repo — team-visible).
~/.claude/skills/ is machine-global (available across all projects but not present for collaborators who clone).move-to-globalℹ️ Manual action required — [local_path]
This skill may be a candidate for promotion to the global catalog.
To promote manually:
1. Copy: cp [local_path] ~/.claude/skills/[skill_name]/SKILL.md
2. Register in agent-config repo: skills/[skill_name]/SKILL.md
3. Run install.sh to deploy
4. Run /skill-add [skill_name] in the original project to add a registry reference
5. Delete the local copy after verifying the global version worksPhase 5 complete — [N] actions processed
✅ deleted : [N]
✅ stubs added : [N]
✅ flagged irrelevant : [N]
ℹ️ language violations : [N] (manual fix required)
ℹ️ move-to-global : [N] (manual — see instructions above)
⏭️ skipped : [N]
❌ failed : [N]ai-context/changelog-ai.md## [YYYY-MM-DD] — project-fix executed
**Score before**: [XX]/100
**Actions executed**: [N] critical, [N] high, [N] medium
**Files created**: [list]
**Files modified**: [list]
**SDD Readiness**: [FULL|PARTIAL|NOT CONFIGURED] → [final state]
**Notes**: [any important decision made]✅ Fix completed — [Project Name]
Actions executed:
✅ [N] critical
✅ [N] high
✅ [N] medium
⏭️ [N] low (informed, not auto-executed)
Files created: [list]
Files modified: [list]
SDD Status: [FULL / PARTIAL / NOT CONFIGURED]
- Engram: [✅ reachable | ❌ not reachable]
- Global SDD skills: [✅ complete | ⚠️ missing: list]
- CLAUDE.md mentions /sdd-*: [✅ yes | ✅ added]
To verify the result:
→ /project-audit (should show a higher score)
→ To start development with SDD: /sdd-explore <topic> or /sdd-propose <change-name>
Changes recorded in: ai-context/changelog-ai.md## [YYYY-MM-DD] — [description of the change]
**Type**: [Feature|Bug Fix|Refactor|Config|Documentation]
**Agent**: Claude [model]
**Modified files**:
- `path/file.ext` — [what was done]
**Decisions made**:
- [decision and its reason]
**Notes**: [anything important for future sessions]/project-auditai-context/changelog-ai.md/project-fix/project-audit.claude/commands/fix_commands_registry.claude/commands/