mylukin/agent-foreman/foreman-spec
Claude Code and agent skill by mylukin/agent-foreman
- community
Checking that the SKILL.md file is still in the repository.
Multi-role requirement analysis and task breakdown workflow using 4 specialized AI agents (PM, UX, Tech, QA). Each agent conducts web research before analysis to gather industry best practices, case studies, and current trends. Supports Quick Mode (parallel, ~3 min, one Q&A session) and Deep Mode (serial, ~8 min, Q&A after EACH agent so answers inform subsequent analysis). Triggers on 'foreman-spec', 'spec feature', 'break down requirement', 'define tasks', 'spec this'.
Install
npx vskill@latest install mylukin/agent-foreman/foreman-specSKILL.md
Spec Workflow (V8 - Research-Enhanced)
Multi-role requirement analysis using 4 specialized AI agents, each equipped with web research capabilities.
Overview
Transform a high-level requirement into fine-grained, implementable tasks through multi-perspective analysis.
Key Feature: Research-First Approach
Each agent conducts web research BEFORE analysis to:
- Gather industry best practices and standards
- Find case studies and competitor implementations
- Discover current trends and proven patterns
- Ground recommendations in real-world data
Agents (all equipped with WebSearch):
- agent-foreman:pm (Product Manager) - Clarifies WHAT and WHY, researches market/industry
- agent-foreman:ux (UX/UI Designer) - Designs HOW users interact, researches UX patterns
- agent-foreman:tech (Technical Architect) - Architects HOW to build, researches frameworks/security
- agent-foreman:qa (QA Manager) - Plans HOW to verify, researches testing strategies
Modes:
- Quick Mode (parallel) - ~3-4 min, includes research, one combined Q&A session at the end
- Deep Mode (serial) - ~8-10 min, comprehensive research, Q&A after EACH agent (4 sessions, each answer informs subsequent agents)
Phase 0: Mode Selection
Before any analysis, detect project state and ask user to choose mode.
Step 1: Scan Codebase
Use Glob to detect project state:
Step 2: Analyze Requirement Complexity
- Count features mentioned in requirement
- Detect uncertainty words ("maybe", "or", "not sure", "possibly")
- If >3 features OR uncertainty words → COMPLEX
- Otherwise → SIMPLE
Step 3: Determine Recommendation
Step 4: Ask User
Use AskUserQuestion tool:
Place "(Recommended)" on the recommended mode based on Step 3.
Phase 1: Codebase Scan
Scan the project to understand existing patterns.
Actions
- Use Glob to find key files:
README.md,ARCHITECTURE.md,CLAUDE.mdpackage.json,pyproject.toml,go.modsrc/**/*.ts,src/**/*.py,src/**/*.go(sample files)
- Read project configuration to detect:
- Language and framework
- Testing patterns
- Existing conventions
- Create context summary for agents:
- Project type (web app, CLI, API, etc.)
- Tech stack (language, framework, database)
- Existing patterns to follow
Phase 1.5: Research Context (NEW)
Before launching agents, prepare research context based on the requirement.
Research Domains
Identify which areas need research based on the requirement:
| Requirement Type | Research Focus | |
|---|---|---|
| New product | Market analysis, competitor products, industry trends | |
| New feature | Similar implementations, UX patterns, technical approaches | |
| Integration | API documentation, security best practices, compatibility | |
| Performance | Benchmarks, optimization techniques, scalability patterns |
Generate Research Keywords
Extract keywords from the requirement for targeted searches:
Pass Research Context to Agents
Include research keywords in agent prompts:
IMPORTANT: Each agent will conduct its own targeted research using these keywords. The research phase is built into each agent's workflow, not a separate step.
Phase 2: Analysis (Mode-Dependent)
Quick Mode (Parallel)
Launch all 4 agents IN PARALLEL using Task tool. Each agent will conduct web research before analysis:
Wait for all to complete (~30-60 seconds).
Then: Merge questions from all 4 agents:
- Remove duplicates (similar questions from different roles)
- Group by topic
- Prioritize: blocking questions first
- Limit: max 10-12 questions total
Then: Present merged questions to user in one AskUserQuestion call.
Deep Mode (Serial with Immediate Q&A)
Launch agents ONE AT A TIME. CRITICAL: After each agent completes, immediately collect their questions, ask the user, and write answers to the spec file BEFORE launching the next agent.
This ensures:
- Each agent's questions are answered immediately
- Subsequent agents can see previous answers in the spec files
- User maintains focus on one perspective at a time
Step 2A: Product Manager
Wait for completion. PM will:
- Conduct web research on industry/market
- Write analysis to
ai/tasks/spec/PM.md - Output questions using
---QUESTIONS FOR USER---format
→ SKILL Orchestrator Actions (MANDATORY):
- Parse PM's
---QUESTIONS FOR USER---output - Use AskUserQuestion to present PM's questions to user
- Write Q&A section to
ai/tasks/spec/PM.md - Only then proceed to Step 2B
Step 2B: UX Designer
Wait for completion. UX will:
- Read PM.md (including Q&A section with user answers)
- Conduct UX-specific research
- Write analysis to
ai/tasks/spec/UX.md - Output questions using
---QUESTIONS FOR USER---format
→ SKILL Orchestrator Actions (MANDATORY):
- Parse UX's
---QUESTIONS FOR USER---output - Use AskUserQuestion to present UX's questions to user
- Write Q&A section to
ai/tasks/spec/UX.md - Only then proceed to Step 2C
Step 2C: Technical Architect
Wait for completion. Tech will:
- Read PM.md and UX.md (including Q&A sections)
- Conduct tech-specific research
- Write analysis to
ai/tasks/spec/TECH.md - Output questions using
---QUESTIONS FOR USER---format
→ SKILL Orchestrator Actions (MANDATORY):
- Parse Tech's
---QUESTIONS FOR USER---output - Use AskUserQuestion to present Tech's questions to user
- Write Q&A section to
ai/tasks/spec/TECH.md - Only then proceed to Step 2D
Step 2D: QA Manager
Wait for completion. QA will:
- Read all previous spec files (including Q&A sections)
- Conduct QA-specific research
- Write analysis to
ai/tasks/spec/QA.md - Output questions using
---QUESTIONS FOR USER---format
→ SKILL Orchestrator Actions (MANDATORY):
- Parse QA's
---QUESTIONS FOR USER---output - Use AskUserQuestion to present QA's questions to user (if any)
- Write Q&A section to
ai/tasks/spec/QA.md - Proceed to Phase 3 (Create Overview)
Phase 2.5: Question Collection & User Interaction
This phase applies ONLY to Quick Mode. In Deep Mode, questions are handled inline after each agent (see above).
Quick Mode Question Flow
After all 4 agents complete in parallel, handle questions:
Step 1: Extract Questions
Each agent outputs questions using this format (NOT written to file):
Parse each agent's output and extract questions from the ---QUESTIONS FOR USER--- section.
Step 2: Merge and Deduplicate
- Remove duplicates - Similar questions from different roles (e.g., both PM and Tech asking about auth method)
- Group by topic - Organize related questions together
- Prioritize blocking questions first - Questions that block other roles' work
- Limit total - Max 10-12 questions to avoid overwhelming user
Step 3: Ask User
Use AskUserQuestion tool to present merged questions interactively:
Step 4: Write Answers to Files
After user answers, append Q&A section to EACH relevant spec file:
For each file, only include questions relevant to that role:
PM.md: Business/scope questionsUX.md: Design/flow questionsTECH.md: Architecture/implementation questionsQA.md: Testing/quality questions
Phase 3: Create Overview & Breakdown Tasks (DELEGATED)
After Phase 2.5 (Q&A) completes, delegate to breakdown-writer agent.
Phase 3 requires significant context (reading 4 spec files, creating N+2 task files). Delegating to a subagent preserves main session context for subsequent interactions.
Step 1: Compile Q&A Decisions
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/agent-foreman/skills/foreman-spec/SKILL.md
Popularity
- Repository stars
- 245
- Repository forks
- 20
- Repository npm downloads, 7 days
- 80
- 7-day trend score
- 39
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 8 May 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mylukin/agent-foreman/foreman-spec)