Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

create-spec创建规范

Agent Skill

create-spec 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,496

周安装

104

GitHub Stars

163

下载量

832
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:create-spec(创建规范)
来源仓库:https://github.com/flora131/atomic
仓库路径:skills/create-spec
安装命令:
npx skills add https://github.com/flora131/atomic --skill create-spec
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/flora131/atomic --skill create-spec

简介

create-spec 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中按来源线索定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装并使用。
  • 需确认权限范围和维护状态,注意是否触发联网或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

You are tasked with creating a spec for implementing a new feature or system change in the codebase by leveraging existing research in the $ARGUMENTS path. If no research path is specified, use the entire research/ directory. IMPORTANT: Research documents are located in the research/ directory — do NOT look in the specs/ directory for research. Follow the template below to produce a comprehensive specification as output in the specs/ folder using the findings from RELEVANT research documents found in research/. The spec file MUST be named using the format YYYY-MM-DD-topic.md (e.g., specs/2026-03-26-my-feature.md), where the date is the current date and the topic is a kebab-case summary. Tip: It's good practice to use the codebase-research-locator and codebase-research-analyzer agents to help you find and analyze the research documents in the research/ directory. It is also HIGHLY recommended to cite relevant research throughout the spec for additional context.

<EXTREMELY_IMPORTANT>

  • Please use your AskUserQuestion tool to provide a rich interface to ask the user for their input on a question.
  • Please DO NOT implement anything in this stage, just create the comprehensive spec as described below.
  • When writing the spec, DO NOT include information about concrete dates/timelines (e.g. # minutes, hours, days, weeks, etc.) and favor explicit phases (e.g. Phase 1, Phase 2, etc.).
  • Once the spec is generated ask questions one at a time OR in logical groups:

- Refer to section "## 9. Open Questions / Unresolved Issues", go through each question one by one, and use contrastive clarification (presenting 2-3 specific options with concrete tradeoffs) rather than open-ended questions. This means presenting interpretations like "(A) Option X — tradeoff Y" and "(B) Option Z — tradeoff W" instead of asking "what do you think about X?". Update the spec with the user's answers as you walk through the questions. - Interview the user relentlessly about every aspect of this plan/spec until you reach a shared understanding with them. Walk down each branch of the design tree, resolving dependencies between decisions one-by-one. For each question, provide your recommended answer (i.e., contrastive clarification). - If a question can be answered by exploring the codebase, explore the codebase instead and confirm with the user that this is their inferred intent.

  • Finally, once the spec is generated and after open questions are answered, provide an executive summary of the spec to the user including the path to the generated spec document in the specs/ directory.

- Encourage the user to review the spec for best results and provide feedback or ask any follow-up questions they may have.

</EXTREMELY_IMPORTANT>

[Project Name] Technical Design Document / RFC

Document MetadataDetails
Author(s)!git config user.name
StatusDraft (WIP) / In Review (RFC) / Approved / Implemented / Deprecated / Rejected
Team / Owner
Created / Last Updated

1. Executive Summary

*Instruction: A "TL;DR" of the document. Assume the reader is a VP or an engineer from another team who has 2 minutes. Summarize the Context (Problem), the Solution (Proposal), and the Impact (Value). Keep it under 200 words.*

Example: This RFC proposes replacing our current nightly batch billing system with an event-driven architecture using Kafka and AWS Lambda. Currently, billing delays cause a 5% increase in customer support tickets. The proposed solution will enable real-time invoicing, reducing billing latency from 24 hours to <5 minutes.

2. Context and Motivation

*Instruction: Why are we doing this? Why now? Link to the Product Requirement Document (PRD).*

2.1 Current State

*Instruction: Describe the existing architecture. Use a "Context Diagram" if possible. Be honest about the flaws.*

  • Architecture: Currently, Service A communicates with Service B via a shared SQL database.
  • Limitations: This creates a tight coupling; when Service A locks the table, Service B times out.

2.2 The Problem

*Instruction: What is the specific pain point?*

  • User Impact: Customers cannot download receipts during the nightly batch window.
  • Business Impact: We are losing $X/month in churn due to billing errors.
  • Technical Debt: The current codebase is untestable and has 0% unit test coverage.

3. Goals and Non-Goals

*Instruction: This is the contract Definition of Success. Be precise.*

3.1 Functional Goals

  • Users must be able to export data in CSV format.
  • System must support multi-tenant data isolation.

3.2 Non-Goals (Out of Scope)

*Instruction: Explicitly state what you are NOT doing. This prevents scope creep.*

  • We will NOT support PDF export in this version (CSV only).
  • We will NOT migrate data older than 3 years.
  • We will NOT build a custom UI (API only).

4. Proposed Solution (High-Level Design)

*Instruction: The "Big Picture." Diagrams are mandatory here.*

4.1 System Architecture Diagram

*Instruction: Insert a C4 System Context or Container diagram. Show the "Black Boxes."*

  • (Place Diagram Here - e.g., Mermaid diagram)

For example,

%%{init: {'theme':'base', 'themeVariables': { 'primaryColor':'#f8f9fa','primaryTextColor':'#2c3e50','primaryBorderColor':'#4a5568','lineColor':'#4a90e2','secondaryColor':'#ffffff','tertiaryColor':'#e9ecef','background':'#f5f7fa','mainBkg':'#f8f9fa','nodeBorder':'#4a5568','clusterBkg':'#ffffff','clusterBorder':'#cbd5e0','edgeLabelBackground':'#ffffff'}}}%%

flowchart TB
    %% ---------------------------------------------------------
    %% CLEAN ENTERPRISE DESIGN
    %% Professional • Trustworthy • Corporate Standards
    %% ---------------------------------------------------------

    %% STYLE DEFINITIONS
    classDef person fill:#5a67d8,stroke:#4c51bf,stroke-width:3px,color:#ffffff,font-weight:600,font-size:14px

    classDef systemCore fill:#4a90e2,stroke:#357abd,stroke-width:2.5px,color:#ffffff,font-weight:600,font-size:14px

    classDef systemSupport fill:#667eea,stroke:#5a67d8,stroke-width:2.5px,color:#ffffff,font-weight:600,font-size:13px

    classDef database fill:#48bb78,stroke:#38a169,stroke-width:2.5px,color:#ffffff,font-weight:600,font-size:13px

    classDef external fill:#718096,stroke:#4a5568,stroke-width:2.5px,color:#ffffff,font-weight:600,font-size:13px,stroke-dasharray:6 3

    %% NODES - CLEAN ENTERPRISE HIERARCHY

    User(("◉<br><b>User</b><br>")):::person

    subgraph SystemBoundary["◆ Primary System Boundary"]
        direction TB

        LoadBalancer{{"<b>Load Balancer</b><br>NGINX<br><i>Layer 7 Proxy</i>"}}:::systemCore

        API["<b>API Application</b><br>Go • Gin Framework<br><i>REST Endpoints</i>"]:::systemCore

        Worker(["<b>Background Worker</b><br>Go Runtime<br><i>Async Processing</i>"]):::systemSupport

        Cache[("◆<br><b>Cache Layer</b><br>Redis<br><i>In-Memory</i>")]:::database

        PrimaryDB[("●<br><b>Primary Database</b><br>PostgreSQL<br><i>Persistent Storage</i>")]:::database
    end

    ExternalAPI{{"<b>External API</b><br>Third Party<br><i>HTTP/REST</i>"}}:::external

    %% RELATIONSHIPS - CLEAN FLOW

    User -->|"1. HTTPS Request<br>TLS 1.3"| LoadBalancer
    LoadBalancer -->|"2. Proxy Pass<br>Round Robin"| API

    API <-->|"3. Cache<br>Read/Write"| Cache
    API -->|"4. Persist Data<br>Transactional"| PrimaryDB
    API -.->|"5. Enqueue Event<br>Async"| Worker

    Worker -->|"6. Process Job<br>Execution"| PrimaryDB
    Worker -.->|"7. HTTP Call<br>Webhooks"| ExternalAPI

    %% STYLE BOUNDARY
    style SystemBoundary fill:#ffffff,stroke:#cbd5e0,stroke-width:2px,color:#2d3748,stroke-dasharray:8 4,font-weight:600,font-size:12px

4.2 Architectural Pattern

*Instruction: Name the pattern (e.g., "Event Sourcing", "BFF - Backend for Frontend").*

  • We are adopting a Publisher-Subscriber pattern where the Order Service publishes OrderCreated events, and the Billing Service consumes them asynchronously.

4.3 Key Components

ComponentResponsibilityTechnology StackJustification
Ingestion ServiceValidates incoming webhooksGo, Gin FrameworkHigh concurrency performance needed.
Event BusDecouples servicesKafkaDurable log, replay capability.
Projections DBRead-optimized viewsMongoDBFlexible schema for diverse receipt formats.

5. Detailed Design

*Instruction: The "Meat" of the document. Sufficient detail for an engineer to start coding.*

5.1 API Interfaces

*Instruction: Define the contract. Use OpenAPI/Swagger snippets or Protocol Buffer definitions.*

Endpoint: POST /api/v1/invoices

  • Auth: Bearer Token (Scope: invoice:write)
  • Idempotency: Required header X-Idempotency-Key
  • Request Body:
{ "user_id": "uuid", "amount": 100.0, "currency": "USD" }

5.2 Data Model / Schema

*Instruction: Provide ERDs (Entity Relationship Diagrams) or JSON schemas. Discuss normalization vs. denormalization.*

Table: invoices (PostgreSQL)

ColumnTypeConstraintsDescription
idUUIDPK
user_idUUIDFK -> UsersPartition Key
statusENUM'PENDING', 'PAID'Indexed for filtering

5.3 Algorithms and State Management

*Instruction: Describe complex logic, state machines, or consistency models.*

  • State Machine: An invoice moves from DRAFT -> LOCKED -> PROCESSING -> PAID.
  • Concurrency: We use Optimistic Locking on the version column to prevent double-payments.

6. Alternatives Considered

*Instruction: Prove you thought about trade-offs. Why is your solution better than the others?*

OptionProsConsReason for Rejection
Option A: Synchronous HTTP CallsSimple to implement, Easy to debugTight coupling, cascading failuresLatency requirements (200ms) make blocking calls risky.
Option B: RabbitMQLightweight, Built-in routingLess durable than Kafka, harder to replayWe need message replay for auditing (Compliance requirement).
Option C: Kafka (Selected)High throughput, ReplayabilityOperational complexitySelected: The need for auditability/replay outweighs the complexity cost.

7. Cross-Cutting Concerns

7.1 Security and Privacy

  • Authentication: Services authenticate via mTLS.
  • Authorization: Policy enforcement point at the API Gateway (OPA - Open Policy Agent).
  • Data Protection: PII (Names, Emails) is encrypted at rest using AES-256.
  • Threat Model: Primary threat is compromised API Key; remediation is rapid rotation and rate limiting.

7.2 Observability Strategy

  • Metrics: We will track invoice_creation_latency (Histogram) and payment_failure_count (Counter).
  • Tracing: All services propagate X-Trace-ID headers (OpenTelemetry).
  • Alerting: PagerDuty triggers if 5xx error rate > 1% for 5 minutes.

7.3 Scalability and Capacity Planning

  • Traffic Estimates: 1M transactions/day = ~12 TPS avg / 100 TPS peak.
  • Storage Growth: 1KB per record * 1M = 1GB/day.
  • Bottleneck: The PostgreSQL Write node is the bottleneck. We will implement Read Replicas to offload traffic.

8. Migration, Rollout, and Testing

8.1 Deployment Strategy

  • Phase 1: Deploy services in "Shadow Mode" (process traffic but do not email users).
  • Phase 2: Enable Feature Flag new-billing-engine for 1% of internal users.
  • Phase 3: Ramp to 100%.

8.2 Data Migration Plan

  • Backfill: We will run a script to migrate the last 90 days of invoices from the legacy SQL server.
  • Verification: A "Reconciliation Job" will run nightly to compare Legacy vs. New totals.

8.3 Test Plan

  • Unit Tests:
  • Integration Tests:
  • End-to-End Tests:

9. Open Questions / Unresolved Issues

*Instruction: List known unknowns. These must be resolved before the doc is marked "Approved".*

  • Will the Legal team approve the 3rd party library for PDF generation?
  • Does the current VPC peering allow connection to the legacy mainframe?

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.86%
按下载量换算273

Claude

30.27%
按下载量换算252

Cursor

17.96%
按下载量换算149

Gemini CLI

9.58%
按下载量换算80

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/flora131/atomic --skill create-spec 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills