Skip to content

Commit 526f83b

Browse files
Nick Sullivanclaude
andcommitted
✨ Add intelligent skills selection to ai-coding-config command
Replace "default to all" skills behavior with smart evaluation based on project context. Now walks through skills directory, reads SKILL.md descriptions, and categorizes each as recommended/optional/skip based on project signals. Also fixes skills installation path to .claude/skills/. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8578689 commit 526f83b

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

.claude/commands/ai-coding-config.md

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,50 @@ Available configurations:
3737
- Rules (`.cursor/rules/` subdirectories and files)
3838
- Personalities (one or none, common-personality always included)
3939
- Agents (specialized AI assistants, default to all)
40-
- Skills (modular packages, default to all)
40+
- Skills (intelligent selection based on project type - see skills-selection section)
4141
- Commands (always copy all, create in `.claude/commands/` with symlinks in `.cursor/commands/`)
4242
- Standard configs (VSCode settings, Prettier, GitHub workflows)
4343

4444
Use AskUserQuestion to present personality options as quick-select.
4545
</configuration-presentation>
4646

47+
<skills-selection>
48+
Walk through `~/.ai_coding_config/.claude/skills/` and evaluate each skill for relevance to the current project.
49+
50+
For each skill directory:
51+
1. Read the SKILL.md frontmatter to get the description
52+
2. Evaluate whether the skill matches this project's context
53+
3. Categorize as: recommended (strong match), optional (might be useful), or skip (not relevant)
54+
55+
Skill evaluation criteria:
56+
57+
Universal skills (always recommend):
58+
- brainstorming: Useful for any project - refining ideas into designs
59+
- research: Useful for any project - web research for current information
60+
- systematic-debugging: Useful for any project with code - root cause analysis
61+
62+
Project-specific skills (match against signals):
63+
- skill-creator: Only for ai-coding-config repo itself (check if current project IS the config repo)
64+
- youtube-transcript-analyzer: Projects with docs/, research/, or learning-focused goals
65+
66+
When evaluating a skill you haven't seen before:
67+
1. Read its SKILL.md description carefully
68+
2. Look for "Use when..." triggers in the description
69+
3. Match triggers against project signals (package.json, file structure, existing configs)
70+
4. When uncertain, categorize as optional and let user decide
71+
72+
Present skills grouped by category:
73+
- Recommended: Strong match for this project type
74+
- Optional: Might be useful depending on workflow
75+
- Skipping: Not relevant (explain briefly why)
76+
77+
Use AskUserQuestion to confirm skill selection, showing recommended pre-selected.
78+
</skills-selection>
79+
4780
<file-installation>
4881
Copy selected configurations intelligently, respecting existing customizations. Compare files with diff when they exist. For conflicts, use AskUserQuestion to offer choices (overwrite, skip, show diff, or custom action). Never silently overwrite.
4982

50-
Installation mapping: Rules → `.cursor/rules/` (preserve subdirectory structure), Commands → `.claude/commands/` with symlinks in `.cursor/commands/`, Context → `.claude/context.md`, Agents → `.claude/agents/`, Skills → `.skills/` (entire directories), Personalities → `.cursor/rules/personalities/` (common always, additional with `alwaysApply: true`), VSCode → `.vscode/`, Prettier → `.prettierrc`, GitHub workflows → `.github/workflows/`, Gitignore → `.cursor/.gitignore` and `.claude/.gitignore`.
83+
Installation mapping: Rules → `.cursor/rules/` (preserve subdirectory structure), Commands → `.claude/commands/` with symlinks in `.cursor/commands/`, Context → `.claude/context.md`, Agents → `.claude/agents/`, Skills → `.claude/skills/` (copy entire skill directories for selected skills only), Personalities → `.cursor/rules/personalities/` (common always, additional with `alwaysApply: true`), VSCode → `.vscode/`, Prettier → `.prettierrc`, GitHub workflows → `.github/workflows/`, Gitignore → `.cursor/.gitignore` and `.claude/.gitignore`.
5184

5285
Report what was copied, skipped, and how conflicts were handled.
5386
</file-installation>

0 commit comments

Comments
 (0)