/claude-auto-context:create-suggestionfrom claude-auto-context
Detects structural code issues like file bloat, pattern fragmentation, and missing abstractions, then writes proposal files for user approval before changes.
Ships in claude-auto-context. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Analyze session data to detect structural issues and create proposal files requiring user approval before applying.
Structural problems evidenced by session data:
Every suggestion MUST include:
Create files in .claude-auto-context/suggestions/ as suggestion-YYYYMMDD-HHMMSS-{slug}.md:
# Suggestion: {title}
## Description
{one-line summary — used for deduplication and context display}
## Status
pending
## Created
{ISO 8601 UTC timestamp, e.g. 2026-03-27T14:30:52Z}
## Category
{ai-unfriendly-large-file | ai-unfriendly-naming | ai-unfriendly-missing-docs | ai-unfriendly-structure | ai-unfriendly-fragile}
## Problem
{Description with quantitative evidence and specific file names}
## Related Files
- {file1.ext} — {why this file is involved}
- {file2.ext} — {why this file is involved}
## Proposal
### Read first
- {file1.ext} — {why executor must read this before changes, e.g. "contains function to extract"}
- {file2.ext} — {dependency or convention reference}
### Files to modify
- {file1.ext} — {what changes in this file}
- {file2.ext (new file)} — {what this new file will contain}
### Changes
1. In {file1.ext}, function `{functionName}` (lines ~{N}-{M}):
- {specific operation: extract, rename, move, delete, modify}
- {import/export updates needed after the change}
2. In {file2.ext (new file)}:
- Create with exports: {exportName1}, {exportName2}
- Import dependencies: {dep1} from {source}
### Impact
- {other-file.ext} — imports from {file1.ext}, import path may need update
- {test-file.ext} — test assertions may reference moved functions
### Acceptance criteria
- [ ] `grep -q '{exportName}' {new-file.ext}` — export exists in new location
- [ ] `grep -q 'from.*{new-file}' {file1.ext}` — import path updated
- [ ] No TypeScript/syntax errors in modified files
- [ ] Existing tests pass without modification (or test updates documented)
## Evidence Sessions
- session_{id} ({date}): {what was observed}
## Metrics
- Signal ratio: {X}%
- Sessions affected: {N}/{total}
- Estimated impact: {description}
IMPORTANT: The ## Proposal section MUST contain all five subsections (### Read first, ### Files to modify, ### Changes, ### Impact, ### Acceptance criteria). Proposals without these subsections are incomplete and will be rejected.
Changes section rules:
Acceptance criteria rules:
grep -q 'pattern' file.claude-auto-context/suggestions/ to avoid duplicatessuggestion-YYYYMMDD-HHMMSS format using current UTC time (e.g., suggestion-20260323-143052-my-slug.md)suggestion-YYYYMMDD-HHMMSS-{slug}.mdWhat SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/cac-applyReview and apply structural suggestions from Auto Context. USE WHEN user types /cac-apply or mentions applying suggestions./cac-create-skillCreate SKILL.md files from auto-detected workflow prompts. USE WHEN user types /cac-create-skill or wants to generate a skill from detected patterns./context-hygieneContext Hygiene Check**CRITICAL**: You may only CREATE or MODIFY files in `.claude/rules/local/`.npx claudepluginhub getklaim/claude-auto-context --plugin claude-auto-contextOther plugins' skills for the same job