| name | package-creation |
| description | Post-creation workflow for new packages in dx-toolkit monorepo - implementation, testing, publishing |
Package Creation Workflow
Post-creation workflow for new packages in dx-toolkit monorepo. Use these steps after creating a package with the create-package command.
Post-Creation Workflow
After creating a package with the create-package command:
1. Implement Package Logic
- Edit
packages/{package-name}/src/main.ts to export your public API
- Add TSDoc comments to all exports for API documentation
- Create feature modules in
src/ directory
- Add tests in
src/tests/ directory
- Run
bun run check from package directory to verify code quality
2. Register Package Documentation
- Add your package's AGENTS.md reference to root
CLAUDE.md
- This ensures Claude Code can access package development guidelines
- Format:
@packages/{package-name}/AGENTS.md
3. Create Package-Specific Skill (Optional)
When to create a package-specific skill:
- Package introduces framework-specific patterns (e.g., Teams.ai Memory API, Anthropic streaming)
- Package has domain-specific validation/transformation rules unique to its integration
- Patterns are substantial (50+ lines) and will be referenced frequently
- Examples:
mcp-patterns, ai-sdk-patterns, teams-ai-patterns
When NOT to create a skill:
- Patterns are universal (belong in
code-patterns skill)
- Package has minimal integration patterns (<50 lines)