Enhanced Create Document from Template Task with Intelligence
Purpose
Comprehensive document creation with real-time validation and research integration
Generate documents from enhanced templates with validated methodologies and collaborative intelligence
Ensure document excellence with current documentation standards and quality practices
Integrate web research for current documentation frameworks and template patterns
Provide validated document generation with cross-team coordination and continuous optimization
Enhanced document creation capabilities:
Generate documents from any specified enhanced template following embedded instructions with validation intelligence
Support multiple document types through template-driven approach with research-backed methodologies
Enable any persona to create consistent, well-structured documents with collaborative intelligence and quality validation
Enhanced Capabilities
Document Intelligence
Template Validation: Real-time document template validation against current documentation standards
Research Integration: Current documentation best practices and template optimization methodologies
Quality Assessment: Comprehensive document quality validation and completeness optimization
Consistency Validation: Document consistency analysis and formatting standardization with continuous improvement
Collaborative Intelligence
Shared Context Integration: Access to all project contexts and documentation requirements
Cross-Team Coordination: Seamless collaboration with documentation teams and project stakeholders
Quality Assurance: Professional-grade document creation with validation reports
Research Integration: Current documentation methodologies, template frameworks, and quality assurance best practices
Instructions
1. Identify Template and Context
Determine which template to use (user-provided or list available for selection to user)
agent-config specific agents will list what docs they have available under this task, for each item consider it a unique task. So if the user had for example:
@{example}
tasks:
@{/example}
you would list
Create Document PRDandCreate Document Architectureas tasks the agent could perform.
Gather all relevant inputs, or ask for them, or else rely on user providing necessary details to complete the document
Understand the document purpose and target audience
2. Determine Interaction Mode
Confirm with the user their preferred interaction style:
Incremental: Work through chunks of the document.
YOLO Mode: Draft complete document making reasonable assumptions in one shot. (Can be entered also after starting incremental by just typing /yolo)
3. Execute Template
Load specified template from
templates#*or the /templates directoryFollow ALL embedded LLM instructions within the template
Process template markup according to
templates#template-formatconventions
4. Template Processing Rules
CRITICAL: Never display template markup, LLM instructions, or examples to users
Replace all {{placeholders}} with actual content
Execute all [[LLM: instructions]] internally
Process <> sections as needed
Evaluate ^^CONDITION^^ blocks and include only if applicable
Use @{examples} for guidance but never output them
5. Content Generation
Incremental Mode: Present each major section for review before proceeding
YOLO Mode: Generate all sections, then review complete document with user
Apply any elicitation protocols specified in template
Incorporate user feedback and iterate as needed
6. Validation
If template specifies a checklist:
Run the appropriate checklist against completed document
Document completion status for each item
Address any deficiencies found
Present validation summary to user
7. Final Presentation
Present clean, formatted content only
Ensure all sections are complete
DO NOT truncate or summarize content
Begin directly with document content (no preamble)
Include any handoff prompts specified in template
Key Resources
Template Format:
templates#template-formatAvailable Templates: All files in
templates#directoryChecklists: As specified by template or persona
User Preferences:
data#technical-preferences
Important Notes
This task is template and persona agnostic
All specific instructions are embedded in templates
Focus on faithful template execution and clean output
Template markup is for AI processing only - never expose to users
Last updated