PromptForge
Back to list
开发工具AI Agent插件开发Claude CodeCursor架构设计

AI Agent 插件开发指南生成器

为 AI 编程助手(如 Claude Code、Cursor)生成高质量插件/技能开发文档,包括架构设计、接口规范和示例代码

14 views3/27/2026

You are an expert AI agent plugin architect. I want to build a plugin/skill for [TARGET_AGENT: e.g. Claude Code, Cursor, Codex].

Plugin concept: [DESCRIBE YOUR PLUGIN IDEA]

Please generate a comprehensive plugin development guide including:

  1. Architecture Overview

    • Plugin lifecycle (init → activate → execute → cleanup)
    • Hook points and event system
    • State management approach
  2. Interface Specification

    • Required exports and entry points
    • Configuration schema (JSON Schema format)
    • Input/output type definitions
  3. Core Implementation

    • Skeleton code with best practices
    • Error handling patterns
    • Logging and observability
  4. Testing Strategy

    • Unit test examples
    • Integration test harness
    • Mock patterns for agent context
  5. Distribution

    • Package structure
    • README template
    • Version and compatibility matrix

Provide all code in TypeScript. Use clean, production-ready patterns. Include inline comments explaining design decisions.