Create a new plan file in .agents/plans/
You are creating a new plan file in the .agents/plans/ directory.
First, read .agents/ARCHITECTURE.md to understand the project's layered architecture and design principles. This is crucial for planning features that fit into the high-level/low-level API structure.
When planning features, consider the two API layers:
PDF, PDFPage, PDFForm)PdfDict, PdfArray, PdfStream)Most features should follow this pattern:
Example: A gradient feature might have:
createAxialShading(), registerShading() - direct PDF object creationpage.drawGradient() - user-friendly method on PDFPageThe script will automatically:
happy-blue-moon){id}-{slug}.md in .agents/plans/If you have the content ready, run:
bun scripts/create-plan.ts "<slug>" "Your plan content here"
For multi-line content, use heredoc:
bun scripts/create-plan.ts "<slug>" << HEREDOC
Your multi-line
plan content
goes here
HEREDOC
You can also pipe content:
echo "Your content" | bun scripts/create-plan.ts "<slug>"
The created file will have:
---