Skills API

The Skills API provides access to Bootspring's library of battle-tested code patterns, implementation guides, and best practices.

Overview#

Skills are reusable code patterns organized by category:

  • Built-in Skills: Included with Bootspring (auth, database, API patterns)
  • External Skills: Premium skills from the external catalog (Pro tier)

Each skill includes:

  • Detailed implementation guide
  • Code examples
  • Best practices
  • Common pitfalls to avoid

REST API Endpoints#

List Skills#

Loading code block...

Returns available skills.

Query Parameters:

ParameterTypeDescription
includeExternalbooleanInclude external skill catalog
categorystringFilter by category
limitnumberMaximum results (default: 50)

Response:

Loading code block...

Get Skill Details#

Loading code block...

Get full content of a skill.

Parameters:

ParameterTypeDescription
idstringSkill identifier (e.g., auth/jwt)

Query Parameters:

ParameterTypeDescription
summarybooleanReturn summary instead of full content
sectionsstringComma-separated section keywords
maxCharsnumberMaximum content length

Response:

Loading code block...

Search Skills#

Loading code block...

Search skills by query.

Request Body:

Loading code block...

Response:

Loading code block...

Apply Skill#

Loading code block...

Apply a skill pattern to your project.

Request Body:

Loading code block...

MCP Tool#

The bootspring_skill MCP tool provides skill functionality.

Tool Definition#

Loading code block...

Actions#

ActionDescriptionRequired Parameters
listList all skillsNone
showShow skill contentname
searchSearch skillsquery
syncSync external catalogmanifestUrl

Examples#

List skills:

Loading code block...

Show skill:

Loading code block...

Show specific sections:

Loading code block...

Search skills:

Loading code block...

Sync external catalog:

Loading code block...

Available Skill Categories#

auth#

Authentication and authorization patterns.

SkillDescription
auth/jwtFirst-party JWT session auth
auth/nextauthNextAuth.js configuration
auth/sessionSession management with JWT
auth/rbacRole-based access control

database#

Database patterns and ORM setup.

SkillDescription
database/prismaPrisma ORM setup
database/migrationsDatabase migration patterns
database/seedingDatabase seeding strategies

api#

API design and implementation.

SkillDescription
api/route-handlerNext.js route handlers
api/server-actionServer actions patterns
api/validationAPI input validation
api/error-handlingAPI error handling

payments#

Payment processing integrations.

SkillDescription
payments/stripeStripe integration
payments/subscriptionsSubscription management
payments/webhooksPayment webhook handling

testing#

Testing patterns and strategies.

SkillDescription
testing/vitestVitest setup and patterns
testing/playwrightE2E testing with Playwright
testing/mockingTest mocking strategies

External Skills (Pro Tier)#

External skills require a Pro subscription and include:

  • Advanced caching strategies
  • Multi-tenant architecture
  • Enterprise authentication
  • Advanced performance patterns
  • Real-time features

Environment Variables#

VariableDescription
BOOTSPRING_SKILL_TOKENBearer token for external catalog
BOOTSPRING_SKILL_MANIFEST_URLRemote manifest URL
BOOTSPRING_SKILL_CONTENT_BASE_URLContent base URL
BOOTSPRING_SKILL_CACHE_DIRLocal cache directory
BOOTSPRING_SKILL_MANIFEST_PUBLIC_KEYPEM public key for signatures
BOOTSPRING_SKILL_MANIFEST_REQUIRE_SIGNATURERequire signature validation
BOOTSPRING_SKILL_CATALOG_SOURCESource priority: auto, local, cache

Error Handling#

Skill Not Found#

Loading code block...

External Skill Access Denied#

Loading code block...

Signature Verification Failed#

Loading code block...

CLI Commands#

Loading code block...

Best Practices#

  1. Start with built-in skills: They cover most common use cases
  2. Use search to discover: Find relevant patterns by keyword
  3. Request summaries first: Get overview before full content
  4. Combine skills: Use multiple skills for complex features
  5. Check for updates: Sync external catalog periodically
  6. Verify signatures: Enable signature verification in production