openspec-integration
Integration with OpenSpec for fluid, iterative API specification
What this skill does
# OpenSpec Integration Skill
## When to Use
This skill auto-activates when:
- `openspec/` directory detected in project
- User is working on API specifications
- SDD workflow needs spec format
- Part of the unified workflow
## Overview
OpenSpec is a fluid, iterative approach to API specification that emphasizes:
- **Fluid not rigid**: Specs evolve with understanding
- **Iterative not waterfall**: Continuous refinement
- **Easy not complex**: Simple, readable format
## OpenSpec Philosophy
From [Fission-AI/OpenSpec](https://github.com/Fission-AI/OpenSpec):
> "Traditional spec-first development often fails because:
> - Specs become outdated immediately
> - They're too rigid for changing requirements
> - They're hard to maintain
>
> OpenSpec solves this by making specs:
> - Living documents that evolve
> - Easy to update iteratively
> - Tightly integrated with code"
## Directory Structure
Detect and use OpenSpec structure:
```
openspec/
├── spec/ # API specifications
│ ├── api.yaml # Main OpenAPI spec
│ ├── endpoints/ # Endpoint details
│ └── schemas/ # Schema definitions
├── plan/ # Planning documents (optional)
│ ├── architecture.md
│ └── decisions.md
└── examples/ # Example requests/responses
├── requests/
└── responses/
```
## Integration with Workflow
### 1. Auto-Detection
```bash
# Check if OpenSpec exists
if [ -d "openspec/" ]; then
USE_OPENSPEC=true
SPEC_DIR="openspec/spec/"
else
SPEC_DIR="docs/api/" or "api/"
fi
```
### 2. Spec Creation (SDD Phase)
**When creating specs:**
```yaml
# openspec/spec/api.yaml
openapi: 3.1.0
info:
title: User Authentication API
version: 0.1.0
description: |
Initial spec - will evolve as we learn more.
Status: DRAFT
Last updated: 2026-02-09
paths:
/auth/login:
post:
summary: User login
description: |
Authenticate user with email/password.
TODO: Decide on token format (JWT vs session)
TODO: Rate limiting strategy
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LoginRequest'
responses:
'200':
description: Login successful
content:
application/json:
schema:
$ref: '#/components/schemas/LoginResponse'
'401':
description: Invalid credentials
# Version: 0.1.0 - Initial draft
# Version: 0.2.0 - Added rate limiting (pending)
# Version: 1.0.0 - Production ready (target)
```
**Iterative evolution:**
```markdown
## Spec Evolution Log
### v0.1.0 (2026-02-09)
- Initial draft based on requirements
- Open questions: token format, rate limiting
### v0.2.0 (2026-02-10)
- Decided: JWT tokens (30min access + 7day refresh)
- Added: Rate limiting (5 attempts per 15min)
- Refined: Error response format
### v0.3.0 (2026-02-11)
- Added: OAuth2 support
- Changed: Session management approach
```
### 3. Workflow Integration
**Spec-first workflow:**
```bash
# 1. Start with OpenSpec
/workflow:start-development-workflow "Add payment processing API"
# Auto-detects openspec/ directory
# 2. Create initial spec (fluid)
→ Creates openspec/spec/payment.yaml
→ Version 0.1.0 - DRAFT
→ Includes TODOs and open questions
# 3. BDD scenarios from spec
→ Generates features/payment.feature
→ Based on spec endpoints and schemas
# 4. Implement iteratively
→ For each endpoint:
- TDD implementation
- Update spec as we learn
- Mark sections STABLE when complete
# 5. Spec evolves
→ v0.1.0 DRAFT → v0.5.0 WORKING → v1.0.0 STABLE
```
### 4. Fluid Spec Updates
**As implementation reveals new insights:**
```yaml
# BEFORE (v0.1.0 - assumptions)
/payments:
post:
summary: Process payment
# TODO: What payment methods?
# TODO: How to handle failures?
# AFTER (v0.3.0 - learned from implementation)
/payments:
post:
summary: Process payment
description: |
Supports: credit card, PayPal, Apple Pay
LEARNED: Need idempotency keys for retry safety
LEARNED: Webhook callbacks for async processing
parameters:
- name: Idempotency-Key
in: header
required: true
description: Unique key for safe retries
```
## OpenSpec vs Traditional Spec
**Traditional (rigid):**
```
1. Write complete spec upfront
2. Spec is "frozen"
3. Implementation must match spec exactly
4. Changes require formal approval
5. Spec becomes outdated quickly
```
**OpenSpec (fluid):**
```
1. Start with minimal spec (DRAFT)
2. Implement and learn
3. Update spec as understanding grows
4. Mark stable sections
5. Spec stays current with code
```
## Status Markers
Use status markers in specs:
```yaml
paths:
/users:
get:
# STATUS: STABLE - Don't change without discussion
summary: List users
/users/{id}:
put:
# STATUS: WORKING - Still refining
summary: Update user
/admin/reports:
get:
# STATUS: DRAFT - Open questions
# TODO: What metrics?
# TODO: Date range format?
summary: Generate reports
```
## Integration Points
**With SDD Workflow:**
- Auto-detect `openspec/` directory
- Use OpenSpec format for all API specs
- Follow iterative refinement process
**With BDD Workflow:**
- Generate BDD scenarios from OpenSpec endpoints
- Keep scenarios in sync with spec versions
**With TDD Workflow:**
- Implement against current spec version
- Update spec when tests reveal new requirements
**With Task Management:**
- Create tasks for DRAFT sections
- Track spec evolution through task updates
## Commands
**Create OpenSpec spec:**
```bash
/workflow:create-workflow-spec "User API"
→ Detects openspec/ directory
→ Creates openspec/spec/user-api.yaml
→ Version 0.1.0 DRAFT
→ Includes standard sections + TODOs
```
**Update spec iteratively:**
```bash
/workflow:create-workflow-spec-update
→ Opens current spec
→ Marks changes with version bump
→ Logs evolution in spec comments
```
**Validate spec:**
```bash
/workflow:create-workflow-spec-validate
→ OpenAPI validation
→ Check status markers
→ Identify DRAFT sections needing attention
```
## Example: Iterative Spec Evolution
**Day 1: Initial spec**
```yaml
# v0.1.0 - DRAFT
paths:
/auth/login:
post:
summary: Login endpoint
# TODO: Decide on auth mechanism
```
**Day 2: After BDD scenarios**
```yaml
# v0.2.0 - WORKING
paths:
/auth/login:
post:
summary: User login with email/password
description: Returns JWT access token
# Decided: JWT tokens
# TODO: Refresh token strategy?
```
**Day 3: After TDD implementation**
```yaml
# v0.3.0 - WORKING
paths:
/auth/login:
post:
summary: User login with email/password
description: |
Returns JWT access token (30min) + refresh token (7 days)
LEARNED: Need to handle concurrent logins
LEARNED: Should return user profile in response
# TODO: Add rate limiting details
```
**Day 5: After testing**
```yaml
# v1.0.0 - STABLE
paths:
/auth/login:
post:
summary: User login with email/password
description: |
Authenticates user and returns JWT tokens.
Rate limited to 5 attempts per 15 minutes.
# STABLE: Don't change without team discussion
```
## Best Practices
**DO:**
- Start with minimal DRAFT specs
- Update specs as you learn
- Use status markers (DRAFT/WORKING/STABLE)
- Log evolution in spec comments
- Keep spec close to code
**DON'T:**
- Try to design everything upfront
- Freeze specs too early
- Let specs drift from implementation
- Skip status markers
- Forget to version bump
## Output
**OpenSpec files:**
```
openspec/spec/<feature>.yaml - Main spec file
openspec/plan/<feature>.md - Planning notes (optional)
openspec/examples/ - Request/response examples
```
**Spec includes:**
- Version number and status
- Evolution log
- Open questions (TODO)
- Learned insights
- Status mRelated in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.