/ai-coding-config:ai-coding-config [update|doctor]from ai-coding-config
Interactive setup and management of AI coding configurations for Claude Code, Cursor, Aider, and other tools. Detects installed tools, installs plugins, and supports update and doctor subcommands.
Ships in ai-coding-config. Installing the plugin adds it to Claude Code.
Plugin-first AI coding configurations for Claude Code, Cursor, and other AI coding
tools. The marketplace lives at https://github.com/TechNickAI/ai-coding-config.
/ai-coding-config - Interactive setup for current project/ai-coding-config update - Update plugins and configs to latest versions/ai-coding-config doctor - Diagnose plugin health, hook state, and config driftupdate → update modedoctor → doctor modeupdate, doctor) at the start of outputUse AskUserQuestion when presenting discrete choices that save the user time (selecting tools, personalities, handling conflicts). This lets users quickly click options while still allowing free-form text via "Other".
Prefer native tools over bash for file inspection. The Read and Grep tools are more reliable than bash commands for checking file contents and versions. They don't have working directory issues and work consistently across environments.
Never change working directory with cd. Use absolute paths for all file
operations. Changing directories can break git hooks that expect to run from the project
root. If you need to run a command in a different directory, use a subshell or absolute
paths rather than cd && command.
Avoid bash loops entirely. For loops and while loops are fragile across different shell environments. Instead of iterating over files in bash, use the Glob tool to list files, then process them one at a time with Read or individual bash commands. Multiple simple commands are more reliable than one complex loop.
When bash fails, switch tools. If a bash command fails due to hook errors, path issues, or parse errors, don't retry with variations. Switch to native tools (Read, Grep, Glob) which don't have these failure modes.
# Detection commands
test -d .cursor && echo "cursor"
test -d .claude && echo "claude-code"
test -f .aider.conf.yml && echo "aider"
test -d .continue && echo "continue"
Based on detection, use AskUserQuestion to confirm which tools to set up. Pre-select detected tools. Options:
If ONLY Claude Code detected (no Cursor), offer a pure plugin installation that skips rule files entirely.
Ensure `~/.ai_coding_config` exists and is up to date. Clone if missing, pull latest if exists.if [ -d ~/.ai_coding_config ]; then
cd ~/.ai_coding_config && git pull
else
git clone https://github.com/TechNickAI/ai-coding-config.git ~/.ai_coding_config
fi
For Claude Code users, guide them through the plugin marketplace:
Explain the plugin system: "Claude Code uses a plugin marketplace. You can install the plugins you want, and they'll stay updated automatically."
Show available plugins from ~/.ai_coding_config/.claude-plugin/marketplace.json:
Provide the commands to add the marketplace and install plugins:
# Add the marketplace (one time)
/plugin marketplace add https://github.com/TechNickAI/ai-coding-config
# Install the core plugin
/plugin install ai-coding-config
# Optional: Install a personality
/plugin install personality-samantha
Fresh project (no existing configs)
.cursor/rules/ and .cursor/commands/ directoriesAGENTS.md (Claude Code and Cursor both read it directly — no symlink
needed)Existing rules, no AI coding config yet
.cursor/rules/ as real directoryAlready has AI coding config
~/.ai_coding_configDetection:
test -d .cursor/rules && echo "has .cursor/rules"
test -d .cursor/commands && echo "has .cursor/commands"
test -f AGENTS.md && echo "has AGENTS.md"
Copy files from `~/.ai_coding_config/` to project for portability:
~/.ai_coding_config/.cursor/rules/ → .cursor/rules/~/.ai_coding_config/plugins/core/commands/ → .cursor/commands/.cursor/rules/personalities/Cursor does not support agents or skills directories.
Important for hybrid users (Claude Code + Cursor):
.cursor/commands/ must be a REAL directory, not a symlink to .claude/commands/Handle conflicts with AskUserQuestion: overwrite, skip, show diff.
Detect project type: Django, FastAPI, React, Next.js, etc. Look for package.json, requirements.txt, pyproject.toml, existing configs. Understand purpose: API server, web app, CLI tool. Use AskUserQuestion to present personality options:For Claude Code: Install the selected personality plugin via marketplace.
For Cursor: Copy the ONE selected personality file to .cursor/rules/personalities/ and
set alwaysApply: true in its frontmatter. Only one personality should be active.
For hybrid users (both Claude Code and Cursor): Do both. Install the plugin AND copy the file. This ensures the personality works in both environments.
Source files are in ~/.ai_coding_config/plugins/personalities/personality-{name}/.
For Claude Code users: "You're set up with the ai-coding-config plugin marketplace. Installed: [list plugins]"
For Cursor users: "Your project is configured with [X] rules and [Y] commands."
Key commands to highlight:
/autotask "your task" - Autonomous development/address-pr-comments - PR cleanup on autopilot/load-rules - Smart context loadingEnd with: "Run /ai-coding-config update anytime to get the latest improvements."
Detection signals:
~/.claude/plugins/ directory exists.cursor/ directory exists in current projectFor Cursor-only users, skip all marketplace and plugin operations.
Pull latest source files regardless of environment:git -C ~/.ai_coding_config pull
This updates the source repository that both Claude Code marketplace and Cursor file copies draw from.
Immediately after pulling, check if this command file was updated.Compare versions:
~/.ai_coding_config/plugins/core/commands/ai-coding-config.mdIf the source version is newer:
.claude/commands/ai-coding-config.md, update it
with the new version (this keeps the local copy current for discoverability)This check happens before any other operations so that marketplace doctor, plugin updates, and all subsequent steps use current instructions.
For Claude Code users, ensure the ai-coding-config marketplace is healthy. A healthy marketplace has: - Entry in `~/.claude/plugins/known_marketplaces.json` with source pointing to ai-coding-config - Install location at `~/.claude/plugins/marketplaces/ai-coding-config/` with valid `.claude-plugin/marketplace.json` - Plugins in `~/.claude/plugins/cache/ai-coding-config/` matching installed_plugins.json - ai-coding-config plugin enabled in `~/.claude/settings.json` - No deprecated plugins installed (see deprecated plugin check below)Read these files to assess current state. Compare installed plugin versions against marketplace.json versions.
Check `~/.claude/plugins/installed_plugins.json` for plugins from the ai-coding-config marketplace that no longer exist in the current marketplace.json.Previously, the marketplace had separate plugins that were later consolidated:
agents@ai-coding-config → merged into ai-coding-configskills@ai-coding-config → merged into ai-coding-configcommands@ai-coding-config → merged into ai-coding-configIf any deprecated plugins are found, the marketplace needs a reset. The reset will remove these stale entries and install the current consolidated plugin.
This check is future-proof: compare installed plugin names against the current marketplace.json rather than maintaining a hardcoded list.
Compare the installed plugin version against the source marketplace.json version. If the major version changed (e.g., 6.x.x → 7.x.x), trigger a full reset.Major version changes often involve structural changes that plugin update may not
handle cleanly. A reset ensures a clean slate.
Before resetting for major version:
The reset is fast and prevents weird state from version mismatches.
If any health check fails (deprecated plugins, major version change, corruption), reset the marketplace. This is fast and reliable.Before resetting, note which plugins from this marketplace are installed (check
installed_plugins.json for keys ending in @ai-coding-config). Common ones:
Execute plugin commands via subshell for reliability:
# Remove the marketplace
claude "/plugin marketplace remove ai-coding-config"
# Re-add it fresh
claude "/plugin marketplace add https://github.com/TechNickAI/ai-coding-config"
# Install the core plugin
claude "/plugin install ai-coding-config"
# Reinstall any personality plugins the user had
claude "/plugin install personality-samantha" # if they had it before
Resetting takes seconds and eliminates debugging time. Use this approach when:
After reset, verify the plugin is working by checking that expected components exist in the cache directory. Track that a restart will be needed. Then proceed to auto-update check.
If the marketplace is healthy but potentially outdated, update it.Execute plugin commands via subshell for reliability:
# Update marketplace catalog
claude "/plugin marketplace update ai-coding-config"
# Update installed plugins to latest versions
claude "/plugin update ai-coding-config"
Report version changes: "Updated ai-coding-config: 5.2.0 → 6.0.0"
If plugins were updated, track that a restart will be needed.
Third-party marketplaces have auto-update disabled by default. Check if the user wants to enable it for convenience.Auto-update means Claude Code refreshes the marketplace at startup and updates installed plugins automatically. Users stay current without running manual updates.
Guide the user to enable auto-update through the plugin manager:
/plugin to open the plugin managerUse AskUserQuestion to offer this:
/ai-coding-config update when you want updates
Report the healthy state: "Marketplace healthy: 14 agents, 15 commands, 6 skills"
After marketplace is healthy, check for outdated local files that duplicate marketplace content. Local files override marketplace versions, causing confusion and preventing auto-updates.What to look for in .claude/commands/, .claude/agents/, .claude/skills/:
Detection:
# Find symlinks pointing to ai-coding-config cache
find .claude/commands -type l 2>/dev/null | while read f; do
readlink "$f" | grep -q 'ai-coding-config' && echo "duplicate: $f"
done
What to preserve:
What to remove:
~/.claude/plugins/cache/ai-coding-config/ (plugin provides these)Explain the situation: "Found X duplicate commands that the plugin already provides. Removing these lets you get auto-updates from the marketplace."
Offer to remove duplicates. If user declines, warn that local files override plugin versions and won't auto-update.
For Cursor users, update copied configuration files.Pull latest from source repository, then compare versions using YAML frontmatter. Update files where the source version is newer than the installed version.
Files to compare:
~/.ai_coding_config/.cursor/rules/ vs .cursor/rules/~/.ai_coding_config/plugins/core/commands/ vs .cursor/commands/~/.ai_coding_config/plugins/personalities/ vs
.cursor/rules/personalities/Report updates with version progression: "git-interaction.mdc: 1.0.0 → 1.1.0"
For personalities, preserve the user's alwaysApply setting when updating content.
Check for deprecated files and offer removal:
.cursor/rules/git-commit-message.mdc merged into git-interaction.mdc.cursor/rules/marianne-williamson.mdc renamed to luminous.mdc.cursor/commands/ as symlink → should be a real directory with copied files.cursor/rules/ as symlink → should be a real directory with copied filesCritical pattern to detect: .cursor/commands/ symlinked to .claude/commands/
This creates a mess because Claude Code and Cursor need different things:
When this pattern is found:
.cursor/commands/ symlink.cursor/commands/ as a real directory.claude/commands/~/.ai_coding_config/plugins/core/commands/.claude/commands/ (duplicates of plugin)Detection:
# Check if .cursor/commands is a symlink to .claude/commands
readlink .cursor/commands | grep -q '.claude/commands' && echo "cursor-symlinked-to-claude"
# List ai-coding-config symlinks in .claude/commands
find .claude/commands -type l -exec readlink {} \; | grep -q 'ai-coding-config' && echo "has-plugin-symlinks"
For Claude Code users who are Cursor-only (no marketplace):
.claude/commands/ as symlink → remove and skip (not needed for Cursor).claude/agents/ as symlink → remove and skip.claude/skills/ as symlink → remove and skip For Claude Code: "Marketplace healthy. ai-coding-config v6.0.0 installed. Auto-update enabled."
For Cursor: "Updated 3 rules, 2 commands. 12 files already current."
For both: Combine the summaries.
Tell the user to restart Claude Code when any of these occurred: - Marketplace was reset or reinstalled - Plugins were updated to new versions - Auto-update setting was changedPlugins are loaded at startup, so changes take effect after restart.
Message: "Restart Claude Code to load the updated plugins. Run claude in a new
terminal, or use Cmd+Shift+P → 'Claude Code: Restart' in your IDE."
If nothing changed (already up to date, no reset needed), skip the restart message.
plugins/core/ directory exists at cwd. Run all checks including
symlink and plugin JSON consistency checks.plugins/core/ absent. Skip source-repo checks; focus on plugin
install state, settings, and hooks.Report which context was detected at the top of output.
These checks mirror the ones in <marketplace-doctor> (update-mode). If either section
is updated (e.g., a new settings key), keep both in sync.
Read ~/.claude/plugins/known_marketplaces.json with the Read tool:
/plugin marketplace add https://github.com/TechNickAI/ai-coding-config/plugin marketplace add https://github.com/TechNickAI/ai-coding-configCheck ~/.claude/plugins/cache/ai-coding-config/ for plugin content using Glob:
/plugin install ai-coding-configRead ~/.claude/settings.json and check for plugin enablement:
/plugin to check statusFor each directory: .claude/commands, .claude/agents, .claude/skills:
Use Bash with absolute paths anchored to $(pwd):
ls -la "$(pwd)/.claude/commands" "$(pwd)/.claude/agents" "$(pwd)/.claude/skills"
plugins/core/ subdirectoryCheck rules/ → .cursor/rules/:
ls -la "$(pwd)/rules"
rules is a symlink to .cursor/rulesln -s .cursor/rules rulesSource repo: Read plugins/core/hooks/hooks.json with the Read tool to get declared
hooks. Use Glob to list plugins/core/hooks/*.sh, then check each file:
-x), and first line is #!/bin/bashchmod +x <path>User project: Hook script files are managed by the plugin cache — skip the script file checks. Instead, verify hooks are registered in settings (see below).
Check that hooks are registered in project or global settings. Read
.claude/settings.json if it exists; otherwise fall back to ~/.claude/settings.json:
/ai-coding-config update.claude/settings.json and global settings has no hooks → hooks rely on
plugin marketplace loadingRead both .claude-plugin/marketplace.json and
plugins/core/.claude-plugin/plugin.json:
metadata.version == plugins[0].version == plugin.json version.claude-plugin/AGENTS.md"Compare installed command version vs source repo version. Read the version field from
the YAML frontmatter of:
~/.ai_coding_config/plugins/core/commands/ai-coding-config.md (source, if it
exists)/ai-coding-config update~/.ai_coding_config — normal for plugin-only users (no
action needed)Use Glob to list plugins/core/skills/*/SKILL.md (source repo only — the plugin cache
uses flat .md files without subdirectories, so this check applies only in the source
repo context).
For each SKILL.md, read and verify:
--- YAML frontmatter blockname, description, and triggers fields presenttriggers → skill won't auto-activate on natural languagenext-skill declared: check by directory name first (fast path — the directory
name should match the skill name); if not found, fall back to scanning name fields
in each SKILL.md. Also check .claude/commands/ for commands. ✅ target found, ⚠️
target not found anywherestability: experimental declared: ℹ️ note as informational (expected for new or
actively-changing skills — not a problem, just surfaced for awareness)Report a single summary line per skill (not per field) to keep output scannable.
Hook permissions are the only thing doctor auto-fixes (with user confirmation), and only in source-repo context where the script files are present:"⚠️ .sh is not executable. Fix now? [y/N]"
If yes: chmod +x plugins/core/hooks/<hook-name>.sh
For all other issues, report and direct to the appropriate fix command. Don't modify JSON files, settings, or symlinks without explicit user instruction.
Print category headers as the checks complete. Example final output:## ai-coding-config doctor
Context: source repo (plugins/core/ detected)
### Plugin Install State
✅ Marketplace registered (ai-coding-config v9.21.0)
✅ Plugin cache present
✅ Plugin enabled in settings
### Symlinks
✅ .claude/commands → plugins/core/commands
✅ .claude/agents → plugins/core/agents
✅ .claude/skills → plugins/core/skills
❌ rules/ symlink missing
### Hook Scripts
✅ verify-deliverables.sh — executable, valid shebang
⚠️ todo-persist.sh — exists but not executable
### Marketplace JSON Consistency
✅ .claude-plugin/marketplace.json valid JSON
✅ plugins/core/.claude-plugin/plugin.json valid JSON
✅ Versions consistent (9.21.0)
### Version Drift
✅ Command file up to date (v4.2.0)
### Skill Frontmatter
✅ brainstorming — name, description, triggers, next-skill: brainstorm-synthesis (found)
✅ systematic-debugging — name, description, triggers, next-skill: verify-fix (found)
ℹ️ mcp-debug — triggers field present, stability: experimental
---
## Summary
1 failure ❌ 1 warning ⚠️ 11 passed ✅
## Suggested Fixes
❌ rules/ symlink missing:
ln -s .cursor/rules rules
⚠️ todo-persist.sh not executable:
chmod +x plugins/core/hooks/todo-persist.sh
(or confirm above to auto-fix)
All-green output ends with: "All checks passed — your setup is healthy."
Keep the summary tight. Users should be able to skim it in 10 seconds.
Respect existing files - always check before overwriting. Use diff to understand differences, then decide intelligently or ask. Better to be thoughtful than fast.
Explain choices helpfully. Don't just list files - explain what they do and why someone might want them.
What the command file sets; muted values are Claude Code's defaults
npx claudepluginhub technickai/ai-coding-config --plugin ai-coding-config21 commands in this plugin
/address-pr-commentsprettier-ignoreTriage and address PR comments from code review bots - analyzes feedback, prioritizes issues, fixes valid concerns, and declines incorrect suggestions/autotaskprettier-ignoreExecute development task autonomously from description to PR-ready - handles implementation, testing, and git workflow without supervision/cleanup-worktreeprettier-ignoreClean up a git worktree after its PR has been merged - verifies merge status and safely removes the worktree directory/do-issueprettier-ignoreAutonomously triage and resolve a GitHub issue from analysis to PR ready for merge - handles investigation, fixes, testing, and PR workflow/generate-AGENTS-fileprettier-ignoreGenerate or update AGENTS.md with project context for AI assistants - creates universal context for Claude Code, Cursor, Copilot/generate-llms-txtprettier-ignoreGenerate or update llms.txt to help LLMs understand your site - standardized file for AI assistants to navigate documentationOther plugins' commands for the same job
7-day visitors to each command page