@girardmedia/bootspring 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +255 -0
  3. package/agents/README.md +93 -0
  4. package/agents/api-expert/context.md +416 -0
  5. package/agents/architecture-expert/context.md +454 -0
  6. package/agents/backend-expert/context.md +483 -0
  7. package/agents/code-review-expert/context.md +365 -0
  8. package/agents/database-expert/context.md +250 -0
  9. package/agents/devops-expert/context.md +446 -0
  10. package/agents/frontend-expert/context.md +364 -0
  11. package/agents/index.js +140 -0
  12. package/agents/performance-expert/context.md +377 -0
  13. package/agents/security-expert/context.md +343 -0
  14. package/agents/testing-expert/context.md +414 -0
  15. package/agents/ui-ux-expert/context.md +448 -0
  16. package/agents/vercel-expert/context.md +426 -0
  17. package/bin/bootspring.js +310 -0
  18. package/cli/agent.js +337 -0
  19. package/cli/context.js +194 -0
  20. package/cli/dashboard.js +150 -0
  21. package/cli/generate.js +294 -0
  22. package/cli/init.js +410 -0
  23. package/cli/loop.js +421 -0
  24. package/cli/mcp.js +241 -0
  25. package/cli/memory.js +303 -0
  26. package/cli/orchestrator.js +400 -0
  27. package/cli/plugin.js +451 -0
  28. package/cli/quality.js +332 -0
  29. package/cli/skill.js +369 -0
  30. package/cli/task.js +628 -0
  31. package/cli/telemetry.js +114 -0
  32. package/cli/todo.js +614 -0
  33. package/cli/update.js +312 -0
  34. package/core/config.js +245 -0
  35. package/core/context.js +329 -0
  36. package/core/entitlements.js +209 -0
  37. package/core/index.js +43 -0
  38. package/core/policies.js +68 -0
  39. package/core/telemetry.js +247 -0
  40. package/core/utils.js +380 -0
  41. package/dashboard/server.js +818 -0
  42. package/docs/integrations/claude-code.md +42 -0
  43. package/docs/integrations/codex.md +42 -0
  44. package/docs/mcp-api-platform.md +102 -0
  45. package/generators/generate.js +598 -0
  46. package/generators/index.js +18 -0
  47. package/hooks/context-detector.js +177 -0
  48. package/hooks/index.js +35 -0
  49. package/hooks/prompt-enhancer.js +289 -0
  50. package/intelligence/git-memory.js +551 -0
  51. package/intelligence/index.js +59 -0
  52. package/intelligence/orchestrator.js +964 -0
  53. package/intelligence/prd.js +447 -0
  54. package/intelligence/recommendation-weights.json +18 -0
  55. package/intelligence/recommendations.js +234 -0
  56. package/mcp/capabilities.js +71 -0
  57. package/mcp/contracts/mcp-contract.v1.json +497 -0
  58. package/mcp/registry.js +213 -0
  59. package/mcp/response-formatter.js +462 -0
  60. package/mcp/server.js +99 -0
  61. package/mcp/tools/agent-tool.js +137 -0
  62. package/mcp/tools/capabilities-tool.js +54 -0
  63. package/mcp/tools/context-tool.js +49 -0
  64. package/mcp/tools/dashboard-tool.js +58 -0
  65. package/mcp/tools/generate-tool.js +46 -0
  66. package/mcp/tools/loop-tool.js +134 -0
  67. package/mcp/tools/memory-tool.js +180 -0
  68. package/mcp/tools/orchestrator-tool.js +232 -0
  69. package/mcp/tools/plugin-tool.js +76 -0
  70. package/mcp/tools/quality-tool.js +47 -0
  71. package/mcp/tools/skill-tool.js +233 -0
  72. package/mcp/tools/telemetry-tool.js +95 -0
  73. package/mcp/tools/todo-tool.js +133 -0
  74. package/package.json +98 -0
  75. package/plugins/index.js +141 -0
  76. package/quality/index.js +380 -0
  77. package/quality/lint-budgets.json +19 -0
  78. package/skills/index.js +787 -0
  79. package/skills/patterns/README.md +163 -0
  80. package/skills/patterns/api/route-handler.md +217 -0
  81. package/skills/patterns/api/server-action.md +249 -0
  82. package/skills/patterns/auth/clerk.md +132 -0
  83. package/skills/patterns/database/prisma.md +180 -0
  84. package/skills/patterns/payments/stripe.md +272 -0
  85. package/skills/patterns/security/validation.md +268 -0
  86. package/skills/patterns/testing/vitest.md +307 -0
  87. package/templates/bootspring.config.js +83 -0
  88. package/templates/mcp.json +9 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Bootspring
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,255 @@
1
+ # Bootspring
2
+
3
+ > Development scaffolding with intelligence
4
+
5
+ [![npm version](https://badge.fury.io/js/@girardmedia%2Fbootspring.svg)](https://www.npmjs.com/package/@girardmedia/bootspring)
6
+ [![CI](https://github.com/bootspring/bootspring/actions/workflows/ci.yml/badge.svg)](https://github.com/bootspring/bootspring/actions/workflows/ci.yml)
7
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
8
+
9
+ Bootspring is an AI-powered development platform that provides intelligent context, specialized agents, and workflow automation for any MCP-compatible AI assistant.
10
+
11
+ ## Features
12
+
13
+ - **Intelligent Context Management** - Automatically generates and maintains AI context for your project
14
+ - **Specialized Agents** - 12+ expert agents for database, security, frontend, backend, and more
15
+ - **MCP Integration** - Native Model Context Protocol server for seamless AI assistant integration
16
+ - **Entitlement-Ready Skill Catalog** - Built-in patterns public, curated external catalog policy-gated
17
+ - **Plugin System** - Extensible architecture for auth, payments, database, testing, security
18
+ - **Real-time Dashboard** - Visual project tracking with live updates
19
+ - **Quality Gates** - Automated code quality and security checks
20
+ - **Todo Management** - Simple, powerful task tracking
21
+
22
+ ## Quick Start
23
+
24
+ ```bash
25
+ # Initialize in your project
26
+ npx @girardmedia/bootspring init
27
+
28
+ # Or install globally
29
+ npm install -g @girardmedia/bootspring
30
+ bootspring init
31
+ ```
32
+
33
+ ## Commands
34
+
35
+ ### Getting Started
36
+
37
+ ```bash
38
+ bootspring init # Initialize Bootspring in your project
39
+ bootspring generate # Generate/regenerate CLAUDE.md context
40
+ bootspring dashboard # Start the real-time dashboard
41
+ ```
42
+
43
+ ### Daily Workflow
44
+
45
+ ```bash
46
+ bootspring todo add "task" # Add a new todo
47
+ bootspring todo list # List all todos
48
+ bootspring todo done 1 # Mark todo #1 as complete
49
+ bootspring context # View project context summary
50
+ bootspring context validate # Validate project setup
51
+ ```
52
+
53
+ ### Intelligence
54
+
55
+ ```bash
56
+ bootspring agent list # List available agents
57
+ bootspring agent show <name> # Show agent details
58
+ bootspring agent invoke <n> # Get specialized help
59
+ bootspring skill search <q> # Find code patterns
60
+ bootspring skill list --external # Include curated external catalog
61
+ bootspring orchestrator workflows # List workflows and premium packs
62
+ bootspring telemetry status # Inspect local telemetry pipeline
63
+ ```
64
+
65
+ Premium workflow packs:
66
+
67
+ - `launch-pack` (pro)
68
+ - `reliability-pack` (pro)
69
+ - `growth-pack` (pro)
70
+
71
+ Workflow telemetry (stored locally in `.bootspring/telemetry/events.jsonl`):
72
+
73
+ - `workflow_started`
74
+ - `workflow_step_advanced`
75
+ - `workflow_checkpoint_completed`
76
+ - `pack_signal_checkpoint`
77
+ - `workflow_completed`
78
+
79
+ ### External Skill Entitlements
80
+
81
+ Built-in skills are always available. Curated external skills (`external/*`) are policy-gated via a shared entitlement layer:
82
+
83
+ - Local mode (default): external skills are available when present.
84
+ - Server mode: external skills require entitlement.
85
+
86
+ ```bash
87
+ # Server-side policy mode (for hosted API/MCP)
88
+ export BOOTSPRING_SKILL_ACCESS_MODE=server
89
+
90
+ # Grant entitlement in server mode
91
+ export BOOTSPRING_SKILLS_ENTITLED=true
92
+ # or
93
+ export BOOTSPRING_USER_TIER=pro
94
+ ```
95
+
96
+ Remote premium delivery (cache-first):
97
+
98
+ ```bash
99
+ bootspring skill sync \
100
+ --manifest-url https://api.bootspring.com/skills/manifest.json \
101
+ --content-base-url https://api.bootspring.com/skills/content
102
+ ```
103
+
104
+ Recommended for production:
105
+
106
+ ```bash
107
+ export BOOTSPRING_SKILL_MANIFEST_REQUIRE_SIGNATURE=true
108
+ export BOOTSPRING_SKILL_MANIFEST_PUBLIC_KEY="-----BEGIN PUBLIC KEY-----..."
109
+ ```
110
+
111
+ ### PRD Markdown
112
+
113
+ `intelligence/prd` supports both hand-written and exported story headings:
114
+
115
+ - `## Story 1: Title`
116
+ - `### [ ] Title` (export format from `toMarkdown()`)
117
+
118
+ Top-level description text should appear after the `# Title` and before story headings.
119
+
120
+ ### Quality & Plugins
121
+
122
+ ```bash
123
+ bootspring quality pre-commit # Run pre-commit checks
124
+ bootspring plugin list # List available plugins
125
+ bootspring plugin enable auth # Enable a plugin
126
+ ```
127
+
128
+ ## Agents
129
+
130
+ Bootspring includes 12+ specialized agents:
131
+
132
+ | Agent | Expertise |
133
+ |-------|-----------|
134
+ | `database-expert` | SQL, Prisma, PostgreSQL, migrations |
135
+ | `security-expert` | OWASP, authentication, authorization |
136
+ | `frontend-expert` | React, Next.js, Tailwind, components |
137
+ | `backend-expert` | Node.js, APIs, server actions |
138
+ | `api-expert` | REST, GraphQL, tRPC, webhooks |
139
+ | `testing-expert` | Vitest, Jest, Playwright, coverage |
140
+ | `performance-expert` | Optimization, caching, profiling |
141
+ | `devops-expert` | CI/CD, Docker, deployment |
142
+ | `ui-ux-expert` | Design systems, accessibility |
143
+ | `architecture-expert` | System design, patterns |
144
+ | `code-review-expert` | Code quality, best practices |
145
+ | `vercel-expert` | Vercel, serverless, edge |
146
+
147
+ ## Configuration
148
+
149
+ Create `bootspring.config.js` in your project root:
150
+
151
+ ```javascript
152
+ module.exports = {
153
+ project: {
154
+ name: 'My App',
155
+ description: 'A modern web application'
156
+ },
157
+ stack: {
158
+ framework: 'nextjs',
159
+ language: 'typescript',
160
+ database: 'postgresql',
161
+ hosting: 'vercel'
162
+ },
163
+ plugins: {
164
+ auth: { enabled: true, provider: 'clerk' },
165
+ payments: { enabled: true, provider: 'stripe' },
166
+ database: { enabled: true, provider: 'prisma' },
167
+ testing: { enabled: true, provider: 'vitest' },
168
+ security: { enabled: true }
169
+ },
170
+ dashboard: {
171
+ port: 3456
172
+ }
173
+ };
174
+ ```
175
+
176
+ ## MCP Integration
177
+
178
+ Bootspring works as an MCP server for Claude Code and other compatible AI assistants.
179
+
180
+ Configure in `.mcp.json`:
181
+
182
+ ```json
183
+ {
184
+ "mcpServers": {
185
+ "bootspring": {
186
+ "command": "npx",
187
+ "args": ["@girardmedia/bootspring", "mcp"],
188
+ "env": {}
189
+ }
190
+ }
191
+ }
192
+ ```
193
+
194
+ Available MCP tools:
195
+ - `bootspring_context` - Show/validate project context
196
+ - `bootspring_agent` - Invoke specialized agents
197
+ - `bootspring_capabilities` - Discover client-adaptive capabilities by tier/mode
198
+ - `bootspring_skill` - Retrieve code patterns
199
+ - `bootspring_telemetry` - List/upload/clear telemetry events
200
+ - `bootspring_todo` - Manage todo items
201
+ - `bootspring_task` - Manage complex tasks
202
+ - `bootspring_quality` - Run quality gates
203
+ - `bootspring_generate` - Regenerate context
204
+ - `bootspring_dashboard` - Control dashboard
205
+
206
+ ## Project Structure
207
+
208
+ ```
209
+ your-project/
210
+ ├── bootspring.config.js # Configuration
211
+ ├── CLAUDE.md # Generated AI context
212
+ ├── todo.md # Task tracking
213
+ ├── .mcp.json # MCP server config
214
+ └── ...
215
+ ```
216
+
217
+ ## Why Bootspring?
218
+
219
+ **Before Bootspring:**
220
+ - Manual context management for AI assistants
221
+ - Inconsistent code patterns across projects
222
+ - No specialized expertise on demand
223
+ - Manual quality checks
224
+
225
+ **With Bootspring:**
226
+ - Automatic context generation and updates
227
+ - Battle-tested code patterns via skills
228
+ - 12+ specialized agents at your fingertips
229
+ - Automated quality gates
230
+ - Real-time project visibility
231
+
232
+ ## Documentation
233
+
234
+ - [Getting Started](https://bootspring.com/docs/getting-started)
235
+ - [Configuration](https://bootspring.com/docs/configuration)
236
+ - [Agents](https://bootspring.com/docs/agents)
237
+ - [Skills](https://bootspring.com/docs/skills)
238
+ - [Plugins](https://bootspring.com/docs/plugins)
239
+ - [MCP Integration](https://bootspring.com/docs/mcp)
240
+ - [Planning Workspace](planning/README.md)
241
+ - [MCP API Platform](docs/mcp-api-platform.md)
242
+
243
+ ## Contributing
244
+
245
+ Contributions are welcome! Please see our [Contributing Guide](CONTRIBUTING.md).
246
+
247
+ ## License
248
+
249
+ MIT License - see [LICENSE](LICENSE) for details.
250
+
251
+ ---
252
+
253
+ **Bootspring** - Bootstrap your development. Spring into production.
254
+
255
+ [Website](https://bootspring.com) · [Documentation](https://bootspring.com/docs) · [GitHub](https://github.com/bootspring/bootspring)
@@ -0,0 +1,93 @@
1
+ # Bootspring Agents
2
+
3
+ Specialized AI agents for different development domains. Each agent provides focused expertise, context, and patterns for its area.
4
+
5
+ ## Available Agents
6
+
7
+ | Agent | Domain | Use When |
8
+ |-------|--------|----------|
9
+ | [database-expert](./database-expert/) | Database & ORM | Schema design, queries, migrations |
10
+ | [security-expert](./security-expert/) | Security & Auth | Auth flows, vulnerabilities, OWASP |
11
+ | [frontend-expert](./frontend-expert/) | UI & React | Components, state, styling |
12
+ | [backend-expert](./backend-expert/) | Server Logic | API routes, server actions, business logic |
13
+ | [api-expert](./api-expert/) | API Design | REST, GraphQL, route handlers |
14
+ | [testing-expert](./testing-expert/) | Testing | Unit, integration, E2E tests |
15
+ | [performance-expert](./performance-expert/) | Performance | Optimization, caching, profiling |
16
+ | [devops-expert](./devops-expert/) | DevOps & CI/CD | Deployment, pipelines, infrastructure |
17
+ | [ui-ux-expert](./ui-ux-expert/) | Design & UX | User experience, accessibility, design |
18
+ | [architecture-expert](./architecture-expert/) | Architecture | System design, patterns, scaling |
19
+ | [code-review-expert](./code-review-expert/) | Code Quality | Reviews, best practices, refactoring |
20
+ | [vercel-expert](./vercel-expert/) | Vercel Platform | Deployment, edge, serverless |
21
+
22
+ ## Using Agents
23
+
24
+ ### Via CLI
25
+ ```bash
26
+ # List all agents
27
+ bootspring agent list
28
+
29
+ # Show agent details
30
+ bootspring agent show database-expert
31
+
32
+ # Invoke agent for current context
33
+ bootspring agent invoke security-expert
34
+ ```
35
+
36
+ ### Via MCP
37
+ When using Claude Code, agents are automatically suggested based on your task context. You can also explicitly request an agent:
38
+
39
+ ```
40
+ @bootspring agent database-expert
41
+ ```
42
+
43
+ ### Agent Selection
44
+
45
+ Bootspring automatically detects which agents are relevant based on keywords in your request:
46
+
47
+ - **database-expert**: database, schema, prisma, drizzle, migration, query, model
48
+ - **security-expert**: auth, login, security, password, jwt, csrf, xss, owasp
49
+ - **frontend-expert**: component, react, ui, tailwind, state, client, hook
50
+ - **backend-expert**: api, server, action, business, logic, service
51
+ - **testing-expert**: test, spec, jest, vitest, playwright, coverage
52
+ - **performance-expert**: performance, optimize, cache, slow, fast, bundle
53
+ - **devops-expert**: deploy, ci, cd, docker, kubernetes, pipeline
54
+ - **architecture-expert**: architecture, design, pattern, scale, structure
55
+
56
+ ## Agent Context Files
57
+
58
+ Each agent directory contains:
59
+
60
+ ```
61
+ agents/{name}/
62
+ ├── context.md # Full agent context and expertise
63
+ ├── patterns.md # Common patterns this agent uses
64
+ └── checklist.md # Review checklist for this domain
65
+ ```
66
+
67
+ ## Creating Custom Agents
68
+
69
+ Add a new directory under `agents/` with at minimum a `context.md` file:
70
+
71
+ ```markdown
72
+ # Custom Agent Name
73
+
74
+ ## Role
75
+ Brief description of what this agent does.
76
+
77
+ ## Expertise
78
+ - Area 1
79
+ - Area 2
80
+
81
+ ## Context
82
+ Detailed knowledge and patterns...
83
+ ```
84
+
85
+ Then register it in your `bootspring.config.js`:
86
+
87
+ ```javascript
88
+ module.exports = {
89
+ agents: {
90
+ custom: ['my-custom-agent']
91
+ }
92
+ };
93
+ ```