Agent SkillsLibPDF-js/core › create-plan

create-plan

GitHub

用于在.agents/plans/目录下创建新功能规划文件。需先阅读ARCHITECTURE.md理解架构,确定slug后生成包含元数据和内容的Markdown计划文件,支持直接、Heredoc或管道输入方式。

.opencode/skills/create-plan/SKILL.md LibPDF-js/core

Trigger Scenarios

需要为项目新功能编写详细实施计划时 用户请求创建新的开发任务或功能规划文档时

Install

npx skills add LibPDF-js/core --skill create-plan -g -y
More Options

Non-standard path

npx skills add https://github.com/LibPDF-js/core/tree/main/.opencode/skills/create-plan -g -y

Use without installing

npx skills use LibPDF-js/core@create-plan

指定 Agent (Claude Code)

npx skills add LibPDF-js/core --skill create-plan -a claude-code -g -y

安装 repo 全部 skill

npx skills add LibPDF-js/core --all -g -y

预览 repo 内 skill

npx skills add LibPDF-js/core --list

SKILL.md

Frontmatter
{
    "name": "create-plan",
    "description": "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.

Your Task

  1. Read ARCHITECTURE.md - Understand the layer structure and design principles
  2. Determine the slug - Based on the conversation context and intent, determine an appropriate file slug (kebab-case recommended). Ask the user if unclear.
  3. Gather content - Collect or generate the plan content from the discussion
  4. Create the file - Use the create-plan script to generate the file

Architecture Considerations

When planning features, consider the two API layers:

  • High-level API: Simple, task-focused interfaces (PDF, PDFPage, PDFForm)
  • Low-level API: Full control via COS objects (PdfDict, PdfArray, PdfStream)

Most features should follow this pattern:

  1. Implement low-level functionality first (direct PDF object manipulation)
  2. Build high-level adapters that provide ergonomic APIs
  3. Ensure the high-level API is what most users interact with

Example: A gradient feature might have:

  • Low-level: createAxialShading(), registerShading() - direct PDF object creation
  • High-level: page.drawGradient() - user-friendly method on PDFPage

Usage

The script will automatically:

  • Generate a unique three-word ID (e.g., happy-blue-moon)
  • Create frontmatter with current date and formatted title
  • Save the file as {id}-{slug}.md in .agents/plans/

Creating the File

Option 1: Direct Content

If you have the content ready, run:

bun scripts/create-plan.ts "<slug>" "Your plan content here"

Option 2: Multi-line Content (Heredoc)

For multi-line content, use heredoc:

bun scripts/create-plan.ts "<slug>" << HEREDOC
Your multi-line
plan content
goes here
HEREDOC

Option 3: Pipe Content

You can also pipe content:

echo "Your content" | bun scripts/create-plan.ts "<slug>"

File Format

The created file will have:

---
date: 2026-01-21
title: Plan Title
---

Your content here

The title is automatically formatted from the slug (e.g., my-featureMy Feature).

Guidelines

  • Use descriptive slugs in kebab-case (e.g., user-authentication, api-integration)
  • Include clear, actionable plan content
  • The unique ID ensures no filename conflicts
  • Files are automatically dated for organization

Begin

Create a plan file using an appropriate slug based on the conversation context and content for the planning task.

Version History

  • 9eedd5f Current 2026-07-24 22:02

Same Skill Collection

.opencode/skills/code-review/SKILL.md
.opencode/skills/continue-implementation/SKILL.md
.opencode/skills/create-documentation/SKILL.md
.opencode/skills/explore-references/SKILL.md
.opencode/skills/interview-spec/SKILL.md
.opencode/skills/conventional-commit/SKILL.md
.opencode/skills/create-scratch/SKILL.md
.opencode/skills/dx-review/SKILL.md
.opencode/skills/implement-spec/SKILL.md

Metadata

Files
0
Version
0fa22e0
Hash
be4b3b8c
Indexed
2026-07-24 22:02

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 05:18
浙ICP备14020137号-1 $방문자$