
gather-requirements
by fractary
SKILL.md
name: gather-requirements model: claude-haiku-4-5 description: | Gather requirements for creating agents, skills, commands, or plugins through interactive prompts and validation. Ensures all necessary information is collected before generation begins. tools: Bash
Gather Requirements Skill
You interact with the user through prompts to ensure complete requirements before artifact generation begins.
<CRITICAL_RULES> IMPORTANT: Rules that must never be violated
-
Complete Information
- ALWAYS collect all required information
- NEVER proceed with incomplete requirements
- ALWAYS validate user input before accepting
-
User Interaction
- ALWAYS prompt clearly for missing information
- ALWAYS provide examples when asking for input
- ALWAYS validate and confirm choices
-
Artifact-Specific
- ALWAYS use the correct workflow for artifact type
- ALWAYS collect artifact-specific requirements
- NEVER mix requirements from different artifact types
</CRITICAL_RULES>
Example:
{
"artifact_type": "agent",
"agent_name": "data-analyzer",
"provided_params": {
"agent_type": "manager",
"description": "Orchestrates data analysis workflows",
"tools": "Bash, Skill"
}
}
EXECUTE STEPS:
Step 1: Load Artifact-Specific Workflow
Read the appropriate workflow file based on artifact type:
- For agents: Read
workflow/agent.md - For skills: Read
workflow/skill.md - For commands: Read
workflow/command.md - For plugins: Read
workflow/plugin.md
The workflow file contains the specific prompts and validation logic for that artifact type.
Step 2: Execute Workflow
Follow the workflow file instructions to:
- Check which parameters are already provided
- Prompt for missing required parameters
- Prompt for optional parameters (with defaults)
- Validate all collected information
- Confirm with user
Step 3: Validate Requirements
Validate collected requirements:
- Names follow naming conventions (kebab-case, no special characters)
- Descriptions are clear and concise
- All required fields are non-empty
- Types/options are from valid choices
Step 4: Return Requirements
Build and return complete requirements object.
OUTPUT COMPLETION MESSAGE:
✅ COMPLETED: Gather Requirements
Requirements collected:
• Name: {artifact_name}
• Type: {artifact_type}
• Description: {description}
• [Additional fields...]
───────────────────────────────────────
Next: Architect phase will design structure
IF FAILURE:
❌ FAILED: Gather Requirements
Step: {failed_step}
Error: {error_message}
Resolution: {resolution_hint}
───────────────────────────────────────
<COMPLETION_CRITERIA> This skill is complete and successful when ALL verified:
✅ 1. Complete Information
- All required parameters collected
- All optional parameters have values (default or user-provided)
- No null or empty required fields
✅ 2. Validated Input
- Names follow conventions (kebab-case)
- Types are from valid choices
- Descriptions are clear
- No invalid characters or formats
✅ 3. User Confirmation
- User has reviewed collected requirements
- User has confirmed to proceed
FAILURE CONDITIONS - Stop and report if: ❌ User cancels during prompts (exit gracefully) ❌ Invalid input after multiple retry attempts (report validation error) ❌ Workflow file not found for artifact type (report missing workflow)
PARTIAL COMPLETION - Not acceptable: ⚠️ Missing optional parameters → Use sensible defaults ⚠️ Unclear description → Prompt for clarification </COMPLETION_CRITERIA>
{
"status": "success",
"artifact_type": "{artifact_type}",
"requirements": {
"name": "{artifact_name}",
"type": "{type}",
"description": "{description}",
"tools": "{tools}",
"plugin_name": "{plugin_name}",
// ... artifact-specific fields
}
}
On error:
{
"status": "error",
"error": "{error_message}",
"step": "{failed_step}"
}
<ERROR_HANDLING>
Missing Workflow File
Pattern: Workflow file not found for artifact type
Action:
- Report which workflow file is missing
- List expected path (e.g.,
workflow/agent.md) - Suggest creating workflow file or checking artifact type
Invalid Name Format
Pattern: Name contains invalid characters or format
Action:
- Explain naming convention (kebab-case, lowercase, hyphens only)
- Provide examples: "data-analyzer", "workflow-manager"
- Prompt user to enter valid name
User Cancellation
Pattern: User cancels during interactive prompts
Action:
- Acknowledge cancellation
- Exit gracefully with status "cancelled"
- Do not throw error (this is valid user action)
Validation Failure
Pattern: Input fails validation checks
Action:
- Report specific validation error
- Explain requirement
- Prompt for corrected input
- Allow up to 3 retry attempts
</ERROR_HANDLING>
Integration
Invoked By:
- agent-creator agent (Phase 1: Frame)
- skill-creator agent (Phase 1: Frame)
- command-creator agent (Phase 1: Frame)
- plugin-creator agent (Phase 1: Frame)
Invokes:
- No other skills (this is a leaf skill)
- Reads workflow files from
workflow/directory
Workflow Files:
workflow/agent.md- Agent requirements gatheringworkflow/skill.md- Skill requirements gatheringworkflow/command.md- Command requirements gatheringworkflow/plugin.md- Plugin requirements gathering
Best Practices
- Always provide examples when prompting for input
- Validate immediately - catch errors early
- Confirm before proceeding - show summary and ask for confirmation
- Handle cancellation gracefully - respect user choice to stop
- Keep prompts clear - avoid jargon, explain what's needed
This skill ensures high-quality input for artifact generation by validating requirements upfront.
Score
Total Score
Based on repository quality metrics
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
Reviews
Reviews coming soon