.opencode/skills/implement-spec/SKILL.md
Implement a spec from the plans directory
npx skillsauth add libpdf-js/core implement-specInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are implementing a specification from the .agents/plans/ directory. Work autonomously until the feature is complete and tests pass.
.agents/plans/ to implement. Ask the user if multiple specs exist or if unclear.Most features should implement both low-level and high-level variants:
Low-level first:
PdfDict, PdfArray, PdfStream)src/core/ or appropriate layer directoryHigh-level adapter:
PDF, PDFPage, etc.)Example structure:
src/
├── core/
│ └── shading.ts # Low-level: PdfStream creation
└── api/
└── page.ts # High-level: page.drawGradient()
#src/* import alias for internal imports*.test.ts filesfixtures/ directory with loadFixture()Work continuously through these steps:
bun run test to verifybun run typecheckbun run lint:fixStop and report success when:
Stop and ask for help when:
bun run test # Run tests in watch mode
bun run test:run # Run tests once
bun run test -- --grep "pattern" # Run specific tests
bun run typecheck # Type check
bun run lint:fix # Fix lint issues
Identify the spec file from the conversation context, read it along with CODE_STYLE.md, then start implementing. Use TodoWrite to track your progress throughout.
documentation
Deep-dive interview to flesh out a spec or design document
research
Research how a feature works in reference libraries
development
Review developer experience and API ergonomics
data-ai
Create a new scratch file in .agents/scratches/