Transform a GitHub issue to follow the INITIAL.md format for context engineering workflow.
Convert GitHub issues into structured context engineering specifications. Use this when you need to transform vague feature requests into comprehensive, actionable specs with specific technical requirements, code examples, and documentation references before implementation.
/plugin marketplace add L-Sypniewski/claude-code-toolkit/plugin install context-engineering@claude-code-toolkitTransform a GitHub issue to follow the INITIAL.md format for context engineering workflow.
## FEATURE:
[Insert your feature here]
## EXAMPLES:
[Provide and explain examples that you have in the `examples/` folder]
## DOCUMENTATION:
[List out any documentation (web pages, sources for an MCP server like Crawl4AI RAG, etc.) that will need to be referenced during development]
## OTHER CONSIDERATIONS:
[Any other considerations or specific requirements - great place to include gotchas that you see AI coding assistants miss with your projects a lot]
When executing this command, you MUST follow these specific rules:
When information is missing or unclear, STOP and ask for clarification:
Common areas that need clarification:
Ask questions like:
Extract Issue Information
Analyze Issue for Completeness
Enhance Issue Content (Only After Clarification)
Create Context Engineering Format
GitHub MCP Integration
Parse Issue URL
Extract: owner, repo, issue_number from URL pattern:
https://github.com/{owner}/{repo}/issues/{issue_number}
Fetch Issue Content
Use GitHub MCP to get issue title and body content
Generate Formatted Comment
Create a comment with this template following INITIAL.md best practices:
---
# Context Engineering Specification
## FEATURE
**Transform the original issue description to be specific and comprehensive:**
❌ Avoid: Vague descriptions like "Build a contact form"
✅ Provide: "Build an async contact form component for Astro.js that validates email/phone fields using Zod schemas, integrates with Cloudflare Workers for submission processing, handles spam protection with Turnstile, and provides real-time validation feedback with accessible error messages"
**Requirements:**
- Include specific technologies and libraries to be used
- Define exact functionality and behavior
- Specify integration points with existing REWOS architecture
- Detail validation, error handling, and user experience requirements
## EXAMPLES
**Leverage the examples/ folder and existing codebase patterns:**
- **Specific file references:** `examples/[relevant-pattern]/[file].tsx`
- **Existing components to follow:** `astro/src/components/[ComponentName]/`
- **Pattern explanations:** What aspects should be mimicked (styling, validation, state management)
- **Architecture patterns:** Reference similar implementations in the codebase
**Example format:**
Follow the pattern established in:
astro/src/components/ContactForm.astro for form structureexamples/form-validation/zod-schema.ts for validation patternsastro/src/utils/component-to-html.ts for HTML generation patterns
## DOCUMENTATION
**Include ALL relevant resources with specific URLs:**
- **API Documentation:** Direct links to relevant API sections
- **Library Guides:** Astro.js, React, Zod, Cloudflare Workers documentation
- **MCP Server Documentation:** If using GitHub, Playwright, or other MCP servers
- **Database Schemas:** Strapi content type definitions
- **Deployment Docs:** Cloudflare Pages/Workers specific documentation
**Example format:**
## OTHER CONSIDERATIONS
**Capture important implementation details:**
- **Authentication Requirements:** API keys, user sessions, permissions
- **Rate Limits/Quotas:** Cloudflare Workers limits, API rate limits
- **Common Pitfalls:** REWOS-specific gotchas that AI agents commonly miss
- **Performance Requirements:** Bundle size, loading time, Core Web Vitals impact
- **Browser Compatibility:** Specific browser support requirements
- **Accessibility:** WCAG compliance, screen reader support
- **Responsive Design:** Breakpoint-specific behavior, container queries usage
- **Integration Constraints:** How this affects existing Astro/Strapi integration
**Example format:**
---
*This comment contains the context engineering specification for this feature following INITIAL.md best practices.*
Add Comment to Issue
Use GitHub MCP to post the formatted comment to the issue
generate-prp commandKey Principle: Better to ask questions upfront than implement based on assumptions.
/initial-github-issue https://github.com/owner/repo/issues/123
This will fetch issue #123, analyze its content, and add a formatted comment following the context engineering principles.
Use sequential thinking, context7 MCPs to solve the problem using latest documentation and best practices. Ultrathink the approach and a plan.