Files
Claude-Code-Workflow/.codex/skills/spec-generator/templates/profiles/library-profile.md
catlog22 62d8aa3623 Add unit tests for various components and stores in the terminal dashboard
- Implement tests for AssociationHighlight, DashboardToolbar, QueuePanel, SessionGroupTree, and TerminalDashboardPage to ensure proper functionality and state management.
- Create tests for cliSessionStore, issueQueueIntegrationStore, queueExecutionStore, queueSchedulerStore, sessionManagerStore, and terminalGridStore to validate state resets and workspace scoping.
- Mock necessary dependencies and state management hooks to isolate tests and ensure accurate behavior.
2026-03-08 21:38:20 +08:00

1.2 KiB

Library Spec Profile

Defines additional required sections for library/SDK-type specifications.

Required Sections (in addition to base template)

In Architecture Document

  • Public API Surface: MUST define all public interfaces with signatures, parameters, return types
  • Usage Examples: MUST provide >= 3 code examples showing common usage patterns
  • Compatibility Matrix: MUST define supported language versions, runtime environments
  • Dependency Policy: MUST define transitive dependency policy, version constraints
  • Extension Points: SHOULD define plugin/extension mechanisms if applicable
  • Bundle Size: SHOULD define target bundle size and tree-shaking strategy

In Requirements Document

  • API Ergonomics: Requirements SHOULD address developer experience and API consistency
  • Error Reporting: MUST define error types, messages, and recovery hints for consumers

Quality Gate Additions

Check Criteria Severity
Public API documented All public interfaces with types Error
Usage examples >= 3 working examples Warning
Compatibility matrix Supported environments listed Warning
Dependency policy Transitive deps strategy defined Info