Help us improve
Share bugs, ideas, or general feedback.
From auto-context
Bootstrap project context by scanning structure, tech stack, config files, and git history. Generates initial conventions that surpass Claude Code's built-in /init. Use when setting up auto-context for a new project.
npx claudepluginhub tumblecat44/auto-context --plugin auto-contextHow this skill is triggered — by the user, by Claude, or both
Slash command
/auto-context:ac-initThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Initialize auto-context by performing a deep project scan and generating initial conventions. This skill surpasses Claude Code's built-in `/init` by detecting naming conventions, testing patterns, architecture patterns, error handling, and import style -- patterns that `/init` does not examine.
Analyzes project structure, tech stack, test frameworks, code conventions, and architecture to generate a compact context file for downstream dev-* skills.
Scans codebase to auto-generate CLAUDE.md project config and .rune/ state files for full context in AI coding sessions. Use on new repos or missing/stale context.
Auto-detects tech stack in new/unfamiliar codebases, verifies build/test/lint tooling, documents code patterns, and scaffolds Architecture Decision Records.
Share bugs, ideas, or general feedback.
Initialize auto-context by performing a deep project scan and generating initial conventions. This skill surpasses Claude Code's built-in /init by detecting naming conventions, testing patterns, architecture patterns, error handling, and import style -- patterns that /init does not examine.
Important rules:
.auto-context/conventions.json, NOT directly to CLAUDE.md.Ensure the .auto-context/ directory and required files exist:
mkdir -p .auto-context
Check each file and create only if missing:
conventions.json -- initialize with []candidates.json -- initialize with []anti-patterns.json -- initialize with []config.json -- initialize with {"version":"0.1.0","token_budget":1000,"chars_per_token":3.0}session-log.jsonl -- initialize emptyIf conventions.json already has entries:
"source" values other than "bootstrap", warn the user: "Found N existing non-bootstrap conventions. These will be preserved.""source": "bootstrap") will be replaced by the new scan.Use Glob to find key indicator files. Check for presence of:
Package managers / Languages:
package.json -> Node.js / JavaScript / TypeScriptpyproject.toml, setup.py, requirements.txt -> PythonCargo.toml -> Rustgo.mod -> GoGemfile -> Rubypom.xml, build.gradle -> Java / KotlinFrameworks (check config files):
next.config.* -> Next.jsvite.config.* -> Viteastro.config.* -> Astronuxt.config.* -> Nuxtangular.json -> Angularsvelte.config.* -> SvelteKitTooling:
tsconfig.json -> TypeScript (Read it: check strict, paths, target).eslintrc*, eslint.config.* -> ESLint.prettierrc*, prettier.config.* -> Prettierjest.config.*, vitest.config.*, pytest.ini -> Test frameworksMakefile -> Make-based buildDockerfile, docker-compose.* -> Docker.github/workflows/ -> GitHub Actions CIRead each detected config file to extract specific settings (e.g., TypeScript strict mode, ESLint rule overrides, test framework configuration). Record which files you found.
Run the bundled discovery script:
bash ${CLAUDE_PLUGIN_ROOT}/skills/ac-init/scripts/discover-commands.sh .
Interpret the JSON output to identify:
npm run build, make build, cargo buildnpm run test, pytest, cargo test
npx vitest run path/to/file)npm run lint, ruff check ., cargo clippynpm run dev, make serveNote the full invocation form for each command (with package manager prefix).
If this is a git repository, run these commands:
git log --oneline -20
git shortlog -sn --no-merges HEAD~100..HEAD 2>/dev/null || true
git diff-tree --no-commit-id --name-only -r HEAD~10..HEAD 2>/dev/null || true
Look for:
feat:, fix:), ticket numbers, etc.If not a git repository, skip this step.
Read 3-5 source files from the most active areas (identified in Step 4) or main entry points. For each file, read only the first 100 lines.
Detect these patterns:
./) vs absolute (@/), barrel files (index.ts re-exports)__tests__/), naming (.test.ts vs .spec.ts), test structure (describe/it vs test)Cap your sampling: max 5 files, first 100 lines per file.
Combine all findings from Steps 2-5 into conventions. Each convention must be:
Convention JSON format:
{
"text": "Use TypeScript with strict mode enabled",
"confidence": 0.8,
"source": "bootstrap",
"created_at": "2026-02-25T10:00:00Z",
"observed_in": ["tsconfig.json"]
}
Generate conventions for these categories (as applicable):
Confidence scoring guide:
Merge with existing conventions:
conventions.jsonsource is NOT "bootstrap"source: "bootstrap" entries with new scan results.auto-context/conventions.jsonAfter writing conventions, trigger the existing injection pipeline:
echo '{"cwd":"'"$(pwd)"'","session_id":"ac-init"}' | bash ${CLAUDE_PLUGIN_ROOT}/scripts/inject-context.sh
Report to the user:
If the injection command fails, still keep conventions.json intact -- injection will happen automatically at the next SessionStart.