AgentStack
SKILL verified MIT Self-run

Api Docs

skill-dnyoussef-context-cascade-api-docs · by DNYoussef

A Claude skill from DNYoussef/context-cascade.

No reviews yet
0 installs
10 views
0.0% view→install

Install

$ agentstack add skill-dnyoussef-context-cascade-api-docs

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Api Docs? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

/============================================================================/ / API-DOCS SKILL :: VERILINGUA x VERIX EDITION / /============================================================================/


name: api-docs version: 1.0.0 description: | [assert|neutral] Generate and maintain comprehensive API documentation using OpenAPI 3.0, Swagger UI, and GraphQL Playground. Use when documenting REST APIs, GraphQL services, or creating API reference materials. Ensu [ground:given] [conf:0.95] [state:confirmed] category: delivery tags:

  • delivery
  • development
  • workflow

author: ruv cognitiveframe: primary: aspectual goalanalysis: firstorder: "Execute api-docs workflow" secondorder: "Ensure quality and consistency" third_order: "Enable systematic delivery processes" ---

/----------------------------------------------------------------------------/ / S0 META-IDENTITY / /----------------------------------------------------------------------------/

[define|neutral] SKILL := { name: "api-docs", category: "delivery", version: "1.0.0", layer: L1 } [ground:given] [conf:1.0] [state:confirmed]

/----------------------------------------------------------------------------/ / S1 COGNITIVE FRAME / /----------------------------------------------------------------------------/

[define|neutral] COGNITIVE_FRAME := { frame: "Aspectual", source: "Russian", force: "Complete or ongoing?" } [ground:cognitive-science] [conf:0.92] [state:confirmed]

Kanitsal Cerceve (Evidential Frame Activation)

Kaynak dogrulama modu etkin.

/----------------------------------------------------------------------------/ / S2 TRIGGER CONDITIONS / /----------------------------------------------------------------------------/

[define|neutral] TRIGGER_POSITIVE := { keywords: ["api-docs", "delivery", "workflow"], context: "user needs api-docs capability" } [ground:given] [conf:1.0] [state:confirmed]

/----------------------------------------------------------------------------/ / S3 CORE CONTENT / /----------------------------------------------------------------------------/

API Documentation Generator (Gold Tier)

Kanitsal Cerceve (Evidential Frame Activation)

Kaynak dogrulama modu etkin.

When to Use This Skill

  • API Development: Building or documenting REST APIs, GraphQL APIs, or other web services
  • API Versioning: Managing multiple API versions or migration strategies
  • Developer Experience: Creating interactive documentation for API consumers
  • OpenAPI/Swagger: Generating or maintaining OpenAPI specifications
  • Integration Work: Helping external teams understand and use your APIs

When NOT to Use This Skill

  • Non-API Documentation: General code documentation, user manuals, or internal wikis
  • No API Surface: Pure frontend apps, CLI tools, or embedded systems without APIs
  • Legacy Systems: APIs without code access or with undocumented proprietary protocols
  • Incompatible Stacks: Non-HTTP protocols (MQTT, gRPC) requiring specialized tooling

Success Criteria

  • [ ] API endpoints fully documented with request/response schemas
  • [ ] Authentication and authorization flows clearly explained
  • [ ] Interactive API explorer (Swagger UI/GraphQL Playground) functional
  • [ ] Error codes and handling strategies documented
  • [ ] Rate limiting and usage guidelines specified
  • [ ] Code examples provided for common use cases
  • [ ] Versioning strategy documented if applicable

Edge Cases to Handle

  • Missing Type Annotations: Infer schemas from runtime behavior or database models
  • Dynamic Routes: Document parameterized endpoints and path variables
  • Nested Resources: Handle complex resource hierarchies and relationships
  • File Uploads: Document multipart/form-data and binary payloads
  • Webhooks: Document callback URLs and event payloads
  • Deprecated Endpoints: Mark sunset dates and migration paths

Guardrails

  • NEVER expose internal implementation details or security vulnerabilities in public docs
  • ALWAYS validate generated specs against OpenAPI/GraphQL schema validators
  • NEVER ship documentation without testing example requests
  • ALWAYS include authentication requirements for protected endpoints
  • NEVER assume default values - explicitly document all parameters
  • ALWAYS document error responses, not just success cases

Evidence-Based Validation

  • [ ] Run generated OpenAPI spec through swagger-cli validate
  • [ ] Test all documented endpoints with actual HTTP requests
  • [ ] Verify GraphQL schema with graphql-schema-linter
  • [ ] Check accessibility of interactive docs with axe-core
  • [ ] Validate examples compile and execute successfully
  • [ ] Review documentation with API consumers for clarity

Generate production-quality API documentation with OpenAPI 3.0, automated validation, and interactive documentation formats.

When to Use This Skill

Use when documenting new or existing APIs, creating REST API specifications, maintaining GraphQL schema documentation, or generating interactive API explorers with Swagger UI/GraphQL Playground. Ideal for API-first development, maintaining accurate documentation, and ensuring OpenAPI 3.0 compliance.

API Documentation Types

REST API Documentation

  • OpenAPI 3.0 specifications
  • Endpoint descriptions and parameters
  • Request/response examples
  • Authentication schemes
  • Error codes and handling

GraphQL Documentation

  • Schema definitions
  • Query and mutation documentation
  • Type system reference
  • Resolver documentation

Process

  1. Analyze API structure
  • Identify all endpoints/operations
  • Document request/response schemas
  • Define authentication requirements
  • Catalog error responses
  1. Generate OpenAPI/GraphQL spec
  • Write structured YAML/SDL definitions
  • Include comprehensive examples
  • Document edge cases
  • Add usage guidelines
  1. Create interactive documentation
  • Configure Swagger UI for REST APIs
  • Set up GraphQL Playground
  • Add authentication testing support
  • Enable "Try It Out" fu

/----------------------------------------------------------------------------/ / S4 SUCCESS CRITERIA / /----------------------------------------------------------------------------/

[define|neutral] SUCCESS_CRITERIA := { primary: "Skill execution completes successfully", quality: "Output meets quality thresholds", verification: "Results validated against requirements" } [ground:given] [conf:1.0] [state:confirmed]

/----------------------------------------------------------------------------/ / S5 MCP INTEGRATION / /----------------------------------------------------------------------------/

[define|neutral] MCPINTEGRATION := { memorymcp: "Store execution results and patterns", tools: ["mcp__memory-mcp__memorystore", "mcp_memory-mcp__vector_search"] } [ground:witnessed:mcp-config] [conf:0.95] [state:confirmed]

/----------------------------------------------------------------------------/ / S6 MEMORY NAMESPACE / /----------------------------------------------------------------------------/

[define|neutral] MEMORYNAMESPACE := { pattern: "skills/delivery/api-docs/{project}/{timestamp}", store: ["executions", "decisions", "patterns"], retrieve: ["similartasks", "proven_patterns"] } [ground:system-policy] [conf:1.0] [state:confirmed]

[define|neutral] MEMORYTAGGING := { WHO: "api-docs-{sessionid}", WHEN: "ISO8601timestamp", PROJECT: "{projectname}", WHY: "skill-execution" } [ground:system-policy] [conf:1.0] [state:confirmed]

/----------------------------------------------------------------------------/ / S7 SKILL COMPLETION VERIFICATION / /----------------------------------------------------------------------------/

[direct|emphatic] COMPLETIONCHECKLIST := { agentspawning: "Spawn agents via Task()", registryvalidation: "Use registry agents only", todowritecalled: "Track progress with TodoWrite", work_delegation: "Delegate to specialized agents" } [ground:system-policy] [conf:1.0] [state:confirmed]

/----------------------------------------------------------------------------/ / S8 ABSOLUTE RULES / /----------------------------------------------------------------------------/

[direct|emphatic] RULENOUNICODE := forall(output): NOT(unicodeoutsideascii) [ground:windows-compatibility] [conf:1.0] [state:confirmed]

[direct|emphatic] RULE_EVIDENCE := forall(claim): has(ground) AND has(confidence) [ground:verix-spec] [conf:1.0] [state:confirmed]

[direct|emphatic] RULEREGISTRY := forall(agent): agent IN AGENTREGISTRY [ground:system-policy] [conf:1.0] [state:confirmed]

/----------------------------------------------------------------------------/ / PROMISE / /----------------------------------------------------------------------------/

[commit|confident] APIDOCSVERILINGUAVERIXCOMPLIANT [ground:self-validation] [conf:0.99] [state:confirmed]

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.