Feature Request: Project-aware initialization and workflow learning
Problem Statement
Currently, skills, MCP tools, and sub-agents are powerful features for structuring development workflows, but they lack a systematic way to:
- Initialize project-specific configurations
- Learn from user interaction patterns
- Automatically suggest optimizations based on usage
Proposed Solution
Phase 1: Intelligent Initialization
When starting work on a new project, Claude Code could:
- Project Profiling (via questionnaire or conversational flow)
- Detect tech stack (frameworks, languages, build tools)
- Understand team size and development methodology
- Identify common workflows (testing, deployment, code review)
- Smart Recommendations
- Suggest relevant skills based on project characteristics
- Recommend MCP tools that match the tech stack
- Propose sub-agent configurations for common tasks
- Generate
.claude/configuration templates
- Example Flow
```
Claude: I detected this is a Laravel project with Vue frontend.
Recommended setup:
- Skills: /commit-flow, /deploy-staging, /run-tests
- MCP: context7 (for Laravel docs), exa (for package research)
- Sub-agents: test-runner, code-reviewer
Would you like me to initialize these?
```
Phase 2: Continuous Learning & Iteration
- Pattern Recognition
- Track high-frequency operation sequences
- Identify repetitive multi-step workflows
- Detect common file access patterns
- Proactive Suggestions
- "I noticed you always run tests before committing. Create a /pre-commit skill?"
- "You frequently grep then read files in the same module. Should I create an explore agent for this?"
- "This 5-step deployment sequence appears weekly. Save as /deploy skill?"
- Habit Recording
- After completing a workflow, ask: "Save this as a reusable command/skill?"
- Learn preferred tool choices (e.g., user prefers grep over glob)
- Adapt verbosity and explanation depth based on user feedback
- Configuration Evolution
- Automatically update
.claude/workflows.mdwith learned patterns - Version control for workflow configurations
- Share learned patterns across team (optional)
Benefits
- Lower Barrier to Entry: New users get project-appropriate setup automatically
- Efficiency Gains: Reduce repetitive manual configuration
- Knowledge Capture: Workflows become documented and shareable
- Continuous Improvement: System gets better with usage
- Team Alignment: Standardize workflows across team members
Implementation Ideas
- Store learned patterns in
.claude/learned-patterns.json - Use LLM to analyze conversation history for pattern extraction
- Provide
/review-workflowscommand to see suggestions - Add
/export-configto share configurations - Implement privacy controls for what gets learned/shared
Use Case Example
Week 1: User works on Laravel project, manually runs pint → test → commit each time
Week 2: Claude suggests: "Create /commit skill for this sequence?"
Week 3: User accepts, now uses /commit shortcut
Week 4: Claude notices user always checks queue status after deployment, suggests adding to /deploy skill
Result: Personalized, evolving workflow that matches actual usage patterns
Related Context
This suggestion comes from real-world usage where the power of skills/MCP/sub-agents is evident, but the configuration and discovery process could be more intuitive and adaptive.
---
Submitted by: User feedback via Claude Code session
Project Context: Laravel-based ticket booking system with modular architecture
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗