spec
Define or update a feature specification. Provide a feature name and description with optional Figma link. Updates spec/feature/[name]/spec.md and design.md without touching source code.
- License 许可
- MIT
- 最近更新
- 2026-03-27
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- spec
- context
- fork
- description
- Define or update a feature specification. Provide a feature name and description with optional Figma link. Updates spec/feature/[name]/spec.md and design.md without touching source code.
- argument-hint
- [feature-name] [description + optional Figma URL]
02 资源文件 62
- 脚本scripts/package-lock.json121.8 KB
- 脚本scripts/package.json1000 B
- 脚本scripts/scripts/debug-dowhile.mjs1.7 KB
- 脚本scripts/scripts/patch-sdk.mjs3.6 KB
- 脚本scripts/src/adapters/index.ts466 B
- 脚本scripts/src/adapters/interface.ts1.5 KB
- 脚本scripts/src/adapters/official.ts16.4 KB
- 脚本scripts/src/channels/feishu-commands.ts15.5 KB
- 脚本scripts/src/channels/feishu.ts35.9 KB
- 脚本scripts/src/channels/index.ts322 B
- 脚本scripts/src/channels/interface.ts814 B
- 脚本scripts/src/channels/manager.ts3.9 KB
- 脚本scripts/src/channels/web.ts1.9 KB
- 脚本scripts/src/cli-patch.ts1.8 KB
- 脚本scripts/src/config.ts2.5 KB
- 脚本scripts/src/env-loader.ts3.0 KB
- 脚本scripts/src/history.ts10.7 KB
- 脚本scripts/src/http-server.ts25.5 KB
- 脚本scripts/src/image-utils.ts4.4 KB
- 脚本scripts/src/index.ts22.3 KB
- 脚本scripts/src/platform.ts6.9 KB
- 脚本scripts/src/resolve-executable.ts4.4 KB
- 脚本scripts/src/scheduler.ts13.6 KB
- 脚本scripts/src/session-stats.ts2.3 KB
- 脚本scripts/src/skills.ts2.3 KB
- 脚本scripts/src/test-cc.ts1.3 KB
- 脚本scripts/src/tunnel-manager.ts12.7 KB
- 脚本scripts/src/tunnel-provider.ts4.6 KB
- 脚本scripts/src/types.ts2.0 KB
- 脚本scripts/src/utils.ts2.9 KB
- 脚本scripts/tests/channel-feishu.test.ts36.3 KB
- 脚本scripts/tests/channel-manager.test.ts8.4 KB
- 脚本scripts/tests/channel-web.test.ts4.9 KB
- 脚本scripts/tests/cli-patch.test.ts5.9 KB
- 脚本scripts/tests/concurrency.test.ts3.1 KB
- 脚本scripts/tests/config.test.ts7.7 KB
- 脚本scripts/tests/e2e-agent-teams.test.ts8.2 KB
- 脚本scripts/tests/events-status.test.ts29.9 KB
- 脚本scripts/tests/feishu-commands.test.ts18.2 KB
- 脚本scripts/tests/history-list.test.ts20.8 KB
- 脚本scripts/tests/history.test.ts14.4 KB
- 脚本scripts/tests/http-health.test.ts2.0 KB
- 脚本scripts/tests/image-contract.test.ts6.5 KB
- 脚本scripts/tests/image-support.test.ts8.9 KB
- 脚本scripts/tests/model-selection.test.ts3.7 KB
- 脚本scripts/tests/pair-rate-limit.test.ts3.9 KB
- 脚本scripts/tests/platform.test.ts9.9 KB
- 脚本scripts/tests/public-mode.test.ts5.8 KB
- 脚本scripts/tests/resolve-executable.test.ts20.6 KB
- 脚本scripts/tests/scheduler.test.ts33.5 KB
- 脚本scripts/tests/sdk-upgrade.test.ts3.9 KB
- 脚本scripts/tests/session-crash-fix.test.ts7.4 KB
- 脚本scripts/tests/session-stats.test.ts6.6 KB
- 脚本scripts/tests/skills.test.ts10.0 KB
- 脚本scripts/tests/tunnel-manager.test.ts19.8 KB
- 脚本scripts/tests/utils.test.ts6.7 KB
- 脚本scripts/tests/v2-session.test.ts38.8 KB
- 脚本scripts/tests/verify-real-data.test.ts5.3 KB
- 脚本scripts/tsconfig.json451 B
- 脚本scripts/vitest.config.ts358 B
- 脚本start_backend.bat306 B
- 其他start_hidden.vbs160 B
03 SKILL.md 正文
Prerequisite check
Before routing to any agent, verify /init has been run:
- Check if
spec/PROJECT.mdexists - If NOT exists → output: "Project not initialized. Run
/initfirst to analyze your codebase and set up the spec directory." → STOP
Model selection
Assess task size per spec/rules/_model-routing.md:
- If updating an existing spec with minor changes (feature directory already exists, spec.md present) → spawn
spec-writerwithmodel: haiku - If creating a new feature spec from scratch → spawn
spec-writerwithmodel: sonnet
Task
Spawn spec-writer agent (with assessed model) with the following prompt:
Write or update the feature specification based on the following:
$ARGUMENTS
04 同仓库更多 Skills
zustand
Zustand state management guide. Use when working with store code (src/store/**), implementing actions, managing state, or creating slices. Triggers on Zustand store development, state management questions, or action implementation.
web-vitals
暂无简介
vercel-storage
Vercel storage expert guidance — Blob, Edge Config, and Marketplace storage (Neon Postgres, Upstash Redis). Use when choosing, configuring, or using data storage with Vercel applications.
vercel-functions
Vercel Functions expert guidance — Serverless Functions, Edge Functions, Fluid Compute, streaming, Cron Jobs, and runtime configuration. Use when configuring, debugging, or optimizing server-side code running on Vercel.
ui-ux-pro-max
UI/UX design intelligence for web and mobile. Includes 50+ styles, 161 color palettes, 57 font pairings, 161 product types, 99 UX guidelines, and 25 chart types across 10 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, and HTML/CSS). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, and check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, and mobile app. Elements: button, modal, navbar, sidebar, card, table, form, and chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, and flat design. Topics: color systems, accessibility, animation, layout, typography, font pairing, spacing, interaction states, shadow, and gradient. Integrations: shadcn/ui MCP for component search and examples.
turborepo
Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines, dependsOn, caching, remote cache, the "turbo" CLI, --filter, --affected, CI optimization, environment variables, internal packages, monorepo structure/best practices, and boundaries. Use when user: configures tasks/workflows/pipelines, creates packages, sets up monorepo, shares code between apps, runs changed/affected packages, debugs cache, or has apps/packages directories.