idea-analogist
想法群聊室 — 类比者角色。被 idea-team 主编排器调用,或用户单独说"类比一下"、"别的行业有没有"、"yes-and 扩展"、"X 让你想到什么"、"跨界启示"时触发。**专门做跨界类比 + yes-and 扩展——不评判、不挑刺、不要求事实证据**。Do NOT use when 用户要数据(用…
Technical specification and design document expert. Use when writing design docs, RFCs, ADRs, or evaluating technology choices. Covers C4 model, system design, and architecture documentation.
$ npx -y skills add majiayu000/spellbook --skill technical-spec --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/technical-specContext preview
The summary Claude sees to decide when to auto-load this skill.
Technical specification and design document expert. Use when writing design docs, RFCs, ADRs, or evaluating technology choices. Covers C4 model, system design, and architecture documentation.
name: technical-spec description: Technical specification and design document expert. Use when writing design docs, RFCs, ADRs, or evaluating technology choices. Covers C4 model, system design, and architecture documentation.
> Expert guidance for writing effective technical design documents, RFCs, Architecture Decision Records, and technology evaluation frameworks.
---
> These rules are mandatory. Violating them means the skill is not working correctly.
**Every design document must include at least 2 alternative solutions.**
❌ FORBIDDEN: ## Solution We will use PostgreSQL for the database. (No alternatives considered) ✅ REQUIRED: ## Proposed Solution PostgreSQL for primary database. ## Alternatives Considered ### Option A: PostgreSQL (Recommended) **Pros**: ACID compliance, JSON support, mature ecosystem **Cons**: Vertical scaling limits **Decision**: Chosen for reliability and team expertise ### Option B: MongoDB **Pros**: Horizontal scaling, flexible schema **Cons**: Eventual consistency, less familiar to team **Decision**: Rejected due to consistency requirements ### Option C: DynamoDB **Pros**: Serverless, auto-scaling **Cons**: Vendor lock-in, complex query patterns **Decision**: Rejected due to query flexibility needs
**System designs must include architecture diagrams. No text-only descriptions.**
❌ FORBIDDEN:
"The user sends a request to the API, which talks to the database
and returns a response."
✅ REQUIRED:
Include at least one of:
- C4 Context/Container diagram
- Sequence diagram for key flows
- Data flow diagram
Example (Mermaid):
```mermaid
sequenceDiagram
Client->>API: POST /orders
API->>Auth: Validate token
Auth-->>API: User context
API->>DB: Create order
DB-->>API: Order ID
API-->>Client: 201 Created### Success Metrics Defined **Every design must include measurable success criteria.** ```markdown ❌ FORBIDDEN: ## Goals - Make the system faster - Improve reliability - Better user experience ✅ REQUIRED: ## Success Metrics | Metric | Current | Target | Measurement | |--------|---------|--------|-------------| | API Latency (P95) | 500ms | <200ms | Prometheus histogram | | Availability | 99.5% | 99.9% | Uptime monitoring | | Error Rate | 2% | <0.1% | Error tracking | | Throughput | 1K req/s | 10K req/s | Load testing |
**All designs must identify risks and their mitigations.**
❌ FORBIDDEN: (No risk section, assuming everything will work) ✅ REQUIRED: ## Risks & Mitigations | Risk | Severity | Likelihood | Mitigation | |------|----------|------------|------------| | Database migration fails | High | Medium | Backup + rollback plan, test in staging | | Third-party API unavailable | Medium | Low | Circuit breaker, fallback cache | | Team lacks expertise | Medium | Medium | Pair programming, external review | | Scope creep | High | High | Fixed scope document, change control |
---
| Scenario | Document Type | Complexity | |----------|--------------|------------| | New feature design | Technical Design Doc | Medium-High | | System architecture | C4 Model Diagrams | Medium | | Major technical decision | Architecture Decision Record (ADR) | Low-Medium | | Cross-team proposal | RFC (Request for Comments) | Medium-High | | Technology evaluation | Tech Selection Matrix | Medium | | API contract | OpenAPI/AsyncAPI Spec | Low-Medium |
---
**Purpose**: Blueprint for implementing a feature or system **Audience**: Engineers, technical leads **When**: Before implementing significant features **Sections**: Problem, solution, alternatives, risks, timeline
**Purpose**: Proposal for discussion and feedback **Audience**: Cross-functional teams **When**: Need consensus on technical direction **Sections**: Problem statement, proposal, trade-offs, open questions
**Purpose**: Document a single architectural decision **Audience**: Current and future engineers **When**: Any architecturally significant choice **Sections**: Context, decision, consequences, status
**Purpose**: Visualize system architecture at multiple zoom levels **Audience**: Technical and non-technical stakeholders **When**: Communicating system structure **Levels**: Context, Container, Component, Code
---
# Title: User Authentication System **Author**: Jane Doe **Status**: Proposed | In Review | Approved | Implemented **Created**: 2025-12-18 **Last Updated**: 2025-12-18 **Reviewers**: @tech-lead, @security-team
## Problem **Current State**: Users authenticate via legacy session cookies, no MFA support. **Impact**: 23% of security incidents related to compromised credentials. **Constraint**: Must support 10K concurrent users, <200ms login latency. **Goal**: Implement secure, scalable authentication with MFA and OAuth support.
## Solution Implement JWT-based authentication with: - Access tokens (15min TTL) + Refresh tokens (7 day TTL) - TOTP-based MFA (Google Authenticator compatible) - OAuth 2.0 providers (Google, GitHub) - Redis for token blacklist and session management ### High-Level Design [Include C4 Container diagram here]
Cross-runtime skills for Claude Code, Codex, and multi-agent workflows.
Repo: majiayu000/spellbook
想法群聊室 — 类比者角色。被 idea-team 主编排器调用,或用户单独说"类比一下"、"别的行业有没有"、"yes-and 扩展"、"X 让你想到什么"、"跨界启示"时触发。**专门做跨界类比 + yes-and 扩展——不评判、不挑刺、不要求事实证据**。Do NOT use when 用户要数据(用…
想法群聊室 — 反方角色。被 idea-team 主编排器调用,或用户单独说"反方意见"、"挑这个想法的刺"、"为什么会失败"、"找漏洞 / 反例"、"devil's advocate"时触发。**专门挑漏洞、找隐藏假设、给反例——不安慰、不"也许可以这样"、不全盘否定**。Do NOT use when…
想法群聊室 — 调研员角色。被 idea-team 主编排器调用,或用户单独说"调研一下 X"、"X 的现状/竞品/数据"、"找 2026 数据"、"事实底"时触发。**用 WebSearch 拉真实 2026 数据、列竞品、引来源——只给事实,不评判,不建议**。Do NOT use when…
想法群聊室主持人 — 把一句话想法丢给多角色 AI 团队(调研员/反方/类比者)做查漏补缺。每个角色有自己的 voice,他们互相 @ 接话;你随时插话。**这是创意扩展工具,不打分、不否决、不堵路**。Use when 用户说"组个团队聊一下"、"开会讨论这个想法"、"找几个角度看看"、"群聊一下 X"、"team…
端到端产品教练 — 把一句话想法走到 PRD + 可点击 HTML 原型。会顶嘴、强制砍功能、用 Nielsen + Norman 做友好性硬检。Use when user 说"我有一个想法"、"想做一个产品"、"做 MVP"、"写 PRD"、"做用户友好的产品",或调用插件命令…
Mobile app UI design expert for iOS and Android. Use when designing app interfaces, creating design systems, ensuring accessibility, or following platform…