@devran-ai/kit 4.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.
- package/.agent/CheatSheet.md +350 -0
- package/.agent/README.md +76 -0
- package/.agent/agents/README.md +155 -0
- package/.agent/agents/architect.md +185 -0
- package/.agent/agents/backend-specialist.md +276 -0
- package/.agent/agents/build-error-resolver.md +207 -0
- package/.agent/agents/code-reviewer.md +162 -0
- package/.agent/agents/database-architect.md +138 -0
- package/.agent/agents/devops-engineer.md +144 -0
- package/.agent/agents/doc-updater.md +229 -0
- package/.agent/agents/e2e-runner.md +145 -0
- package/.agent/agents/explorer-agent.md +143 -0
- package/.agent/agents/frontend-specialist.md +144 -0
- package/.agent/agents/go-reviewer.md +128 -0
- package/.agent/agents/knowledge-agent.md +197 -0
- package/.agent/agents/mobile-developer.md +150 -0
- package/.agent/agents/performance-optimizer.md +175 -0
- package/.agent/agents/planner.md +133 -0
- package/.agent/agents/pr-reviewer.md +148 -0
- package/.agent/agents/python-reviewer.md +123 -0
- package/.agent/agents/refactor-cleaner.md +201 -0
- package/.agent/agents/reliability-engineer.md +156 -0
- package/.agent/agents/security-reviewer.md +141 -0
- package/.agent/agents/sprint-orchestrator.md +124 -0
- package/.agent/agents/tdd-guide.md +179 -0
- package/.agent/agents/typescript-reviewer.md +110 -0
- package/.agent/checklists/README.md +102 -0
- package/.agent/checklists/pre-commit.md +93 -0
- package/.agent/checklists/session-end.md +99 -0
- package/.agent/checklists/session-start.md +102 -0
- package/.agent/checklists/task-complete.md +81 -0
- package/.agent/commands/README.md +130 -0
- package/.agent/commands/adr.md +29 -0
- package/.agent/commands/ask.md +28 -0
- package/.agent/commands/build.md +30 -0
- package/.agent/commands/changelog.md +40 -0
- package/.agent/commands/checkpoint.md +28 -0
- package/.agent/commands/code-review.md +65 -0
- package/.agent/commands/compact.md +28 -0
- package/.agent/commands/cook.md +30 -0
- package/.agent/commands/db.md +30 -0
- package/.agent/commands/debug.md +31 -0
- package/.agent/commands/deploy.md +37 -0
- package/.agent/commands/design.md +29 -0
- package/.agent/commands/doc.md +30 -0
- package/.agent/commands/eval.md +30 -0
- package/.agent/commands/fix.md +32 -0
- package/.agent/commands/git.md +32 -0
- package/.agent/commands/help.md +273 -0
- package/.agent/commands/implement.md +30 -0
- package/.agent/commands/integrate.md +32 -0
- package/.agent/commands/learn.md +29 -0
- package/.agent/commands/perf.md +31 -0
- package/.agent/commands/plan.md +56 -0
- package/.agent/commands/pr-describe.md +65 -0
- package/.agent/commands/pr-fix.md +45 -0
- package/.agent/commands/pr-merge.md +45 -0
- package/.agent/commands/pr-review.md +50 -0
- package/.agent/commands/pr-split.md +54 -0
- package/.agent/commands/pr-status.md +56 -0
- package/.agent/commands/pr.md +58 -0
- package/.agent/commands/refactor.md +32 -0
- package/.agent/commands/research.md +28 -0
- package/.agent/commands/scout.md +30 -0
- package/.agent/commands/security-scan.md +33 -0
- package/.agent/commands/setup.md +31 -0
- package/.agent/commands/status.md +59 -0
- package/.agent/commands/tdd.md +73 -0
- package/.agent/commands/verify.md +58 -0
- package/.agent/contexts/brainstorm.md +26 -0
- package/.agent/contexts/debug.md +28 -0
- package/.agent/contexts/implement.md +29 -0
- package/.agent/contexts/plan-quality-log.md +30 -0
- package/.agent/contexts/review.md +27 -0
- package/.agent/contexts/ship.md +28 -0
- package/.agent/decisions/001-trust-grade-governance.md +46 -0
- package/.agent/decisions/002-cross-ide-generation.md +15 -0
- package/.agent/engine/identity.json +4 -0
- package/.agent/engine/loading-rules.json +193 -0
- package/.agent/engine/marketplace-index.json +29 -0
- package/.agent/engine/mcp-servers/filesystem.json +9 -0
- package/.agent/engine/mcp-servers/github.json +11 -0
- package/.agent/engine/mcp-servers/postgres.json +11 -0
- package/.agent/engine/mcp-servers/supabase.json +11 -0
- package/.agent/engine/mcp-servers/vercel.json +11 -0
- package/.agent/engine/reliability-config.json +14 -0
- package/.agent/engine/sdlc-map.json +50 -0
- package/.agent/engine/workflow-state.json +167 -0
- package/.agent/hooks/README.md +101 -0
- package/.agent/hooks/hooks.json +104 -0
- package/.agent/hooks/templates/session-end.md +110 -0
- package/.agent/hooks/templates/session-start.md +95 -0
- package/.agent/manifest.json +466 -0
- package/.agent/rules/agent-upgrade-policy.md +56 -0
- package/.agent/rules/architecture.md +111 -0
- package/.agent/rules/coding-style.md +75 -0
- package/.agent/rules/documentation.md +74 -0
- package/.agent/rules/git-workflow.md +140 -0
- package/.agent/rules/quality-gate.md +117 -0
- package/.agent/rules/security.md +67 -0
- package/.agent/rules/sprint-tracking.md +103 -0
- package/.agent/rules/testing.md +80 -0
- package/.agent/rules/workflow-standards.md +30 -0
- package/.agent/rules.md +293 -0
- package/.agent/session-context.md +69 -0
- package/.agent/session-state.json +27 -0
- package/.agent/skills/README.md +135 -0
- package/.agent/skills/api-patterns/SKILL.md +117 -0
- package/.agent/skills/app-builder/SKILL.md +202 -0
- package/.agent/skills/architecture/SKILL.md +101 -0
- package/.agent/skills/behavioral-modes/SKILL.md +295 -0
- package/.agent/skills/brainstorming/SKILL.md +156 -0
- package/.agent/skills/clean-code/SKILL.md +142 -0
- package/.agent/skills/context-budget/SKILL.md +78 -0
- package/.agent/skills/continuous-learning/SKILL.md +145 -0
- package/.agent/skills/database-design/SKILL.md +303 -0
- package/.agent/skills/debugging-strategies/SKILL.md +158 -0
- package/.agent/skills/deployment-procedures/SKILL.md +191 -0
- package/.agent/skills/docker-patterns/SKILL.md +161 -0
- package/.agent/skills/eval-harness/SKILL.md +89 -0
- package/.agent/skills/frontend-patterns/SKILL.md +141 -0
- package/.agent/skills/git-workflow/SKILL.md +159 -0
- package/.agent/skills/i18n-localization/SKILL.md +191 -0
- package/.agent/skills/intelligent-routing/SKILL.md +180 -0
- package/.agent/skills/mcp-integration/SKILL.md +240 -0
- package/.agent/skills/mobile-design/SKILL.md +191 -0
- package/.agent/skills/nodejs-patterns/SKILL.md +164 -0
- package/.agent/skills/parallel-agents/SKILL.md +200 -0
- package/.agent/skills/performance-profiling/SKILL.md +134 -0
- package/.agent/skills/plan-validation/SKILL.md +192 -0
- package/.agent/skills/plan-writing/SKILL.md +183 -0
- package/.agent/skills/plan-writing/domain-enhancers.md +184 -0
- package/.agent/skills/plan-writing/plan-retrospective.md +116 -0
- package/.agent/skills/plan-writing/plan-schema.md +119 -0
- package/.agent/skills/pr-toolkit/SKILL.md +174 -0
- package/.agent/skills/production-readiness/SKILL.md +126 -0
- package/.agent/skills/security-practices/SKILL.md +109 -0
- package/.agent/skills/shell-conventions/SKILL.md +92 -0
- package/.agent/skills/strategic-compact/SKILL.md +62 -0
- package/.agent/skills/testing-patterns/SKILL.md +141 -0
- package/.agent/skills/typescript-expert/SKILL.md +160 -0
- package/.agent/skills/ui-ux-pro-max/SKILL.md +137 -0
- package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/icons.csv +101 -0
- package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/astro.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.agent/skills/ui-ux-pro-max/data/styles.csv +68 -0
- package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/.agent/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.agent/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/.agent/skills/ui-ux-pro-max/scripts/core.py +253 -0
- package/.agent/skills/ui-ux-pro-max/scripts/design_system.py +1067 -0
- package/.agent/skills/ui-ux-pro-max/scripts/search.py +114 -0
- package/.agent/skills/verification-loop/SKILL.md +89 -0
- package/.agent/skills/webapp-testing/SKILL.md +175 -0
- package/.agent/templates/adr-template.md +32 -0
- package/.agent/templates/bug-report.md +37 -0
- package/.agent/templates/feature-request.md +32 -0
- package/.agent/workflows/README.md +101 -0
- package/.agent/workflows/brainstorm.md +86 -0
- package/.agent/workflows/create.md +85 -0
- package/.agent/workflows/debug.md +83 -0
- package/.agent/workflows/deploy.md +114 -0
- package/.agent/workflows/enhance.md +85 -0
- package/.agent/workflows/orchestrate.md +106 -0
- package/.agent/workflows/plan.md +105 -0
- package/.agent/workflows/pr-fix.md +163 -0
- package/.agent/workflows/pr-merge.md +117 -0
- package/.agent/workflows/pr-review.md +178 -0
- package/.agent/workflows/pr-split.md +118 -0
- package/.agent/workflows/pr.md +184 -0
- package/.agent/workflows/preflight.md +107 -0
- package/.agent/workflows/preview.md +95 -0
- package/.agent/workflows/quality-gate.md +103 -0
- package/.agent/workflows/retrospective.md +100 -0
- package/.agent/workflows/review.md +104 -0
- package/.agent/workflows/status.md +89 -0
- package/.agent/workflows/test.md +98 -0
- package/.agent/workflows/ui-ux-pro-max.md +93 -0
- package/.agent/workflows/upgrade.md +97 -0
- package/LICENSE +21 -0
- package/README.md +218 -0
- package/bin/kit.js +773 -0
- package/lib/agent-registry.js +228 -0
- package/lib/agent-reputation.js +343 -0
- package/lib/circuit-breaker.js +195 -0
- package/lib/cli-commands.js +322 -0
- package/lib/config-validator.js +274 -0
- package/lib/conflict-detector.js +252 -0
- package/lib/constants.js +47 -0
- package/lib/engineering-manager.js +336 -0
- package/lib/error-budget.js +370 -0
- package/lib/hook-system.js +256 -0
- package/lib/ide-generator.js +434 -0
- package/lib/identity.js +240 -0
- package/lib/io.js +146 -0
- package/lib/learning-engine.js +163 -0
- package/lib/loading-engine.js +421 -0
- package/lib/logger.js +118 -0
- package/lib/marketplace.js +321 -0
- package/lib/plugin-system.js +604 -0
- package/lib/plugin-verifier.js +197 -0
- package/lib/rate-limiter.js +113 -0
- package/lib/security-scanner.js +312 -0
- package/lib/self-healing.js +468 -0
- package/lib/session-manager.js +264 -0
- package/lib/skill-sandbox.js +244 -0
- package/lib/task-governance.js +522 -0
- package/lib/task-model.js +332 -0
- package/lib/updater.js +240 -0
- package/lib/verify.js +279 -0
- package/lib/workflow-engine.js +373 -0
- package/lib/workflow-events.js +166 -0
- package/lib/workflow-persistence.js +160 -0
- package/package.json +57 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# Session Start Hook
|
|
2
|
+
|
|
3
|
+
> **Trigger**: SessionStart
|
|
4
|
+
> **Priority**: 1 (Highest)
|
|
5
|
+
> **Status**: Active
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 🎯 Purpose
|
|
10
|
+
|
|
11
|
+
Load context and prepare the environment when a new session begins. This hook ensures **continuity** and **full context** before any work starts.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## 🔄 Actions
|
|
16
|
+
|
|
17
|
+
### 1. Load Session Context
|
|
18
|
+
|
|
19
|
+
Read and apply previous session context:
|
|
20
|
+
|
|
21
|
+
```javascript
|
|
22
|
+
// Load session-context.md
|
|
23
|
+
const context = await loadFile(".agent/session-context.md");
|
|
24
|
+
injectSystemPrompt(context);
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### 2. Check Session State
|
|
28
|
+
|
|
29
|
+
Load machine-readable state:
|
|
30
|
+
|
|
31
|
+
```javascript
|
|
32
|
+
// Load session-state.json
|
|
33
|
+
const state = await loadJSON(".agent/session-state.json");
|
|
34
|
+
if (state.currentTask) {
|
|
35
|
+
notify(`Resuming task: ${state.currentTask}`);
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### 3. Verify Git Status
|
|
40
|
+
|
|
41
|
+
Check current branch and any uncommitted changes:
|
|
42
|
+
|
|
43
|
+
```javascript
|
|
44
|
+
const gitStatus = await exec("git status --short");
|
|
45
|
+
if (gitStatus.length > 0) {
|
|
46
|
+
warn(`Uncommitted changes detected: ${gitStatus.split("\n").length} files`);
|
|
47
|
+
}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### 4. Check Dependencies
|
|
51
|
+
|
|
52
|
+
Ensure project dependencies are installed:
|
|
53
|
+
|
|
54
|
+
```javascript
|
|
55
|
+
const lockfileChanged = await exec("git diff HEAD package-lock.json");
|
|
56
|
+
if (lockfileChanged) {
|
|
57
|
+
suggest("Dependencies may have changed. Consider running npm install.");
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## 📋 Output
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
[Session Start]
|
|
67
|
+
✓ Context loaded from session-context.md
|
|
68
|
+
✓ State restored: currentTask = "Implementing feature X"
|
|
69
|
+
✓ Git branch: main (clean)
|
|
70
|
+
✓ Dependencies: Up to date
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## 🔧 Customization
|
|
76
|
+
|
|
77
|
+
Extend this hook for project-specific needs:
|
|
78
|
+
|
|
79
|
+
```json
|
|
80
|
+
{
|
|
81
|
+
"name": "session-start-custom",
|
|
82
|
+
"trigger": "SessionStart",
|
|
83
|
+
"action": "Load project-specific context files"
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## ⚖️ Trust-Grade Integration
|
|
90
|
+
|
|
91
|
+
This hook supports Trust-Grade principles:
|
|
92
|
+
|
|
93
|
+
- **Consistency > Speed**: Full context before new work
|
|
94
|
+
- **Completion > Suggestion**: Resume unfinished tasks
|
|
95
|
+
- **Explainability**: Clear session state visibility
|
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"kitVersion": "4.1.0",
|
|
4
|
+
"lastAuditedAt": null,
|
|
5
|
+
"description": "Devran AI Kit — Trust-Grade AI Development Framework",
|
|
6
|
+
"repository": "https://github.com/devran-ai/kit",
|
|
7
|
+
"capabilities": {
|
|
8
|
+
"agents": {
|
|
9
|
+
"count": 23,
|
|
10
|
+
"items": [
|
|
11
|
+
{
|
|
12
|
+
"name": "architect",
|
|
13
|
+
"file": "agents/architect.md",
|
|
14
|
+
"domain": "System design, DDD, Hexagonal"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "backend-specialist",
|
|
18
|
+
"file": "agents/backend-specialist.md",
|
|
19
|
+
"domain": "Node.js, NestJS, API design"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "build-error-resolver",
|
|
23
|
+
"file": "agents/build-error-resolver.md",
|
|
24
|
+
"domain": "Rapid build fixes"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "code-reviewer",
|
|
28
|
+
"file": "agents/code-reviewer.md",
|
|
29
|
+
"domain": "Quality + security review"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "database-architect",
|
|
33
|
+
"file": "agents/database-architect.md",
|
|
34
|
+
"domain": "Schema, queries, optimization"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "devops-engineer",
|
|
38
|
+
"file": "agents/devops-engineer.md",
|
|
39
|
+
"domain": "CI/CD, Docker, deployment"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "doc-updater",
|
|
43
|
+
"file": "agents/doc-updater.md",
|
|
44
|
+
"domain": "Documentation sync"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "e2e-runner",
|
|
48
|
+
"file": "agents/e2e-runner.md",
|
|
49
|
+
"domain": "End-to-end testing"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "explorer-agent",
|
|
53
|
+
"file": "agents/explorer-agent.md",
|
|
54
|
+
"domain": "Codebase discovery"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "frontend-specialist",
|
|
58
|
+
"file": "agents/frontend-specialist.md",
|
|
59
|
+
"domain": "React, Next.js, UI architecture"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "knowledge-agent",
|
|
63
|
+
"file": "agents/knowledge-agent.md",
|
|
64
|
+
"domain": "RAG retrieval"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "mobile-developer",
|
|
68
|
+
"file": "agents/mobile-developer.md",
|
|
69
|
+
"domain": "React Native, Expo"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "performance-optimizer",
|
|
73
|
+
"file": "agents/performance-optimizer.md",
|
|
74
|
+
"domain": "Core Web Vitals"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "planner",
|
|
78
|
+
"file": "agents/planner.md",
|
|
79
|
+
"domain": "Task breakdown, Socratic analysis"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "pr-reviewer",
|
|
83
|
+
"file": "agents/pr-reviewer.md",
|
|
84
|
+
"domain": "PR review, branch strategy, code quality"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "refactor-cleaner",
|
|
88
|
+
"file": "agents/refactor-cleaner.md",
|
|
89
|
+
"domain": "Dead code cleanup"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "reliability-engineer",
|
|
93
|
+
"file": "agents/reliability-engineer.md",
|
|
94
|
+
"domain": "SRE, production readiness"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "security-reviewer",
|
|
98
|
+
"file": "agents/security-reviewer.md",
|
|
99
|
+
"domain": "Vulnerability analysis"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "sprint-orchestrator",
|
|
103
|
+
"file": "agents/sprint-orchestrator.md",
|
|
104
|
+
"domain": "Sprint planning, velocity"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "tdd-guide",
|
|
108
|
+
"file": "agents/tdd-guide.md",
|
|
109
|
+
"domain": "Test-first enforcement"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "typescript-reviewer",
|
|
113
|
+
"file": "agents/typescript-reviewer.md",
|
|
114
|
+
"domain": "TypeScript type safety review"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "python-reviewer",
|
|
118
|
+
"file": "agents/python-reviewer.md",
|
|
119
|
+
"domain": "Python best practices review"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "go-reviewer",
|
|
123
|
+
"file": "agents/go-reviewer.md",
|
|
124
|
+
"domain": "Go idioms and concurrency review"
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"commands": {
|
|
129
|
+
"count": 37,
|
|
130
|
+
"directory": "commands/"
|
|
131
|
+
},
|
|
132
|
+
"skills": {
|
|
133
|
+
"count": 34,
|
|
134
|
+
"items": [
|
|
135
|
+
{
|
|
136
|
+
"name": "api-patterns",
|
|
137
|
+
"directory": "skills/api-patterns/"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "app-builder",
|
|
141
|
+
"directory": "skills/app-builder/"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "architecture",
|
|
145
|
+
"directory": "skills/architecture/"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "behavioral-modes",
|
|
149
|
+
"directory": "skills/behavioral-modes/"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "brainstorming",
|
|
153
|
+
"directory": "skills/brainstorming/"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "clean-code",
|
|
157
|
+
"directory": "skills/clean-code/"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "context-budget",
|
|
161
|
+
"directory": "skills/context-budget/"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "continuous-learning",
|
|
165
|
+
"directory": "skills/continuous-learning/"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "database-design",
|
|
169
|
+
"directory": "skills/database-design/"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "debugging-strategies",
|
|
173
|
+
"directory": "skills/debugging-strategies/"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "deployment-procedures",
|
|
177
|
+
"directory": "skills/deployment-procedures/"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "docker-patterns",
|
|
181
|
+
"directory": "skills/docker-patterns/"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "eval-harness",
|
|
185
|
+
"directory": "skills/eval-harness/"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "frontend-patterns",
|
|
189
|
+
"directory": "skills/frontend-patterns/"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "git-workflow",
|
|
193
|
+
"directory": "skills/git-workflow/"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "intelligent-routing",
|
|
197
|
+
"directory": "skills/intelligent-routing/"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"name": "i18n-localization",
|
|
201
|
+
"directory": "skills/i18n-localization/"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "mcp-integration",
|
|
205
|
+
"directory": "skills/mcp-integration/"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "mobile-design",
|
|
209
|
+
"directory": "skills/mobile-design/"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "nodejs-patterns",
|
|
213
|
+
"directory": "skills/nodejs-patterns/"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "parallel-agents",
|
|
217
|
+
"directory": "skills/parallel-agents/"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "performance-profiling",
|
|
221
|
+
"directory": "skills/performance-profiling/"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"name": "plan-validation",
|
|
225
|
+
"directory": "skills/plan-validation/"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "plan-writing",
|
|
229
|
+
"directory": "skills/plan-writing/"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "pr-toolkit",
|
|
233
|
+
"directory": "skills/pr-toolkit/"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "production-readiness",
|
|
237
|
+
"directory": "skills/production-readiness/"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"name": "security-practices",
|
|
241
|
+
"directory": "skills/security-practices/"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "strategic-compact",
|
|
245
|
+
"directory": "skills/strategic-compact/"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "testing-patterns",
|
|
249
|
+
"directory": "skills/testing-patterns/"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"name": "typescript-expert",
|
|
253
|
+
"directory": "skills/typescript-expert/"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "ui-ux-pro-max",
|
|
257
|
+
"directory": "skills/ui-ux-pro-max/"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "verification-loop",
|
|
261
|
+
"directory": "skills/verification-loop/"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"name": "webapp-testing",
|
|
265
|
+
"directory": "skills/webapp-testing/"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "shell-conventions",
|
|
269
|
+
"directory": "skills/shell-conventions/"
|
|
270
|
+
}
|
|
271
|
+
]
|
|
272
|
+
},
|
|
273
|
+
"workflows": {
|
|
274
|
+
"count": 21,
|
|
275
|
+
"items": [
|
|
276
|
+
{
|
|
277
|
+
"name": "brainstorm",
|
|
278
|
+
"file": "workflows/brainstorm.md"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "create",
|
|
282
|
+
"file": "workflows/create.md"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"name": "debug",
|
|
286
|
+
"file": "workflows/debug.md"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"name": "deploy",
|
|
290
|
+
"file": "workflows/deploy.md"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "enhance",
|
|
294
|
+
"file": "workflows/enhance.md"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"name": "orchestrate",
|
|
298
|
+
"file": "workflows/orchestrate.md"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"name": "plan",
|
|
302
|
+
"file": "workflows/plan.md"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"name": "pr",
|
|
306
|
+
"file": "workflows/pr.md"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"name": "pr-review",
|
|
310
|
+
"file": "workflows/pr-review.md"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"name": "pr-fix",
|
|
314
|
+
"file": "workflows/pr-fix.md"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"name": "pr-merge",
|
|
318
|
+
"file": "workflows/pr-merge.md"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"name": "pr-split",
|
|
322
|
+
"file": "workflows/pr-split.md"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"name": "preflight",
|
|
326
|
+
"file": "workflows/preflight.md"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"name": "preview",
|
|
330
|
+
"file": "workflows/preview.md"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"name": "quality-gate",
|
|
334
|
+
"file": "workflows/quality-gate.md"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"name": "retrospective",
|
|
338
|
+
"file": "workflows/retrospective.md"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"name": "review",
|
|
342
|
+
"file": "workflows/review.md"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"name": "status",
|
|
346
|
+
"file": "workflows/status.md"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"name": "test",
|
|
350
|
+
"file": "workflows/test.md"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"name": "ui-ux-pro-max",
|
|
354
|
+
"file": "workflows/ui-ux-pro-max.md"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"name": "upgrade",
|
|
358
|
+
"file": "workflows/upgrade.md"
|
|
359
|
+
}
|
|
360
|
+
]
|
|
361
|
+
},
|
|
362
|
+
"rules": {
|
|
363
|
+
"count": 10,
|
|
364
|
+
"items": [
|
|
365
|
+
{
|
|
366
|
+
"name": "agent-upgrade-policy",
|
|
367
|
+
"file": "rules/agent-upgrade-policy.md"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"name": "architecture",
|
|
371
|
+
"file": "rules/architecture.md"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "coding-style",
|
|
375
|
+
"file": "rules/coding-style.md"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"name": "documentation",
|
|
379
|
+
"file": "rules/documentation.md"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"name": "git-workflow",
|
|
383
|
+
"file": "rules/git-workflow.md"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"name": "quality-gate",
|
|
387
|
+
"file": "rules/quality-gate.md"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "security",
|
|
391
|
+
"file": "rules/security.md"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"name": "sprint-tracking",
|
|
395
|
+
"file": "rules/sprint-tracking.md"
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"name": "testing",
|
|
399
|
+
"file": "rules/testing.md"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"name": "workflow-standards",
|
|
403
|
+
"file": "rules/workflow-standards.md"
|
|
404
|
+
}
|
|
405
|
+
]
|
|
406
|
+
},
|
|
407
|
+
"checklists": {
|
|
408
|
+
"count": 4,
|
|
409
|
+
"items": [
|
|
410
|
+
{
|
|
411
|
+
"name": "pre-commit",
|
|
412
|
+
"file": "checklists/pre-commit.md"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"name": "session-start",
|
|
416
|
+
"file": "checklists/session-start.md"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"name": "session-end",
|
|
420
|
+
"file": "checklists/session-end.md"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"name": "task-complete",
|
|
424
|
+
"file": "checklists/task-complete.md"
|
|
425
|
+
}
|
|
426
|
+
]
|
|
427
|
+
},
|
|
428
|
+
"hooks": {
|
|
429
|
+
"count": 8,
|
|
430
|
+
"items": [
|
|
431
|
+
{
|
|
432
|
+
"name": "session-start",
|
|
433
|
+
"event": "session-start"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"name": "session-end",
|
|
437
|
+
"event": "session-end"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"name": "pre-commit",
|
|
441
|
+
"event": "pre-commit"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "secret-detection",
|
|
445
|
+
"event": "secret-detection"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"name": "phase-transition",
|
|
449
|
+
"event": "phase-transition"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"name": "sprint-checkpoint",
|
|
453
|
+
"event": "sprint-checkpoint"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"name": "plan-complete",
|
|
457
|
+
"event": "plan-complete"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"name": "task-complete",
|
|
461
|
+
"event": "task-complete"
|
|
462
|
+
}
|
|
463
|
+
]
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Agent Upgrade Policy
|
|
2
|
+
|
|
3
|
+
> **Priority**: CRITICAL — Inviolable
|
|
4
|
+
> **Scope**: All AI Agent interactions related to framework initialization, upgrading, and state mutation.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 1. The Preservation Contract
|
|
9
|
+
|
|
10
|
+
The Devran AI Kit exists organically alongside user code. User customizations must survive framework upgrades.
|
|
11
|
+
|
|
12
|
+
The following files and directories are **STRICTLY PROTECTED**:
|
|
13
|
+
|
|
14
|
+
| Protected Item | Type | Reason |
|
|
15
|
+
| :--- | :--- | :--- |
|
|
16
|
+
| `.agent/session-state.json` | File | Active session metadata |
|
|
17
|
+
| `.agent/session-context.md` | File | Session narrative context |
|
|
18
|
+
| `.agent/identity.json` | File | User/project identity (may contain PII) |
|
|
19
|
+
| `.agent/rules/` | Directory | User-customized governance rules |
|
|
20
|
+
| `.agent/checklists/` | Directory | User-customized quality gates |
|
|
21
|
+
| `.agent/decisions/` | Directory | Architecture Decision Records |
|
|
22
|
+
| `.agent/contexts/` | Directory | Learning data and plan quality logs |
|
|
23
|
+
|
|
24
|
+
This is the **canonical list**. The `/upgrade` workflow references this list — do not duplicate or abbreviate it elsewhere.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## 2. Non-Destructive Upgrades Only
|
|
29
|
+
|
|
30
|
+
| Command | Purpose | Safety |
|
|
31
|
+
| :--- | :--- | :--- |
|
|
32
|
+
| `kit update` | Non-destructive AST merger | Safe — preserves protected items |
|
|
33
|
+
| `kit update --dry-run` | Preview upgrade changes | Safe — read-only |
|
|
34
|
+
| `init --force` | Catastrophic repair | **DESTRUCTIVE** — wipes protected items |
|
|
35
|
+
|
|
36
|
+
- **Mandated**: Use `kit update` for all routine upgrades
|
|
37
|
+
- **Prohibited**: Never use `init --force` for routine upgrades. This is a last-resort catastrophic repair command that wipes protected files
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## 3. Upgrade Governance
|
|
42
|
+
|
|
43
|
+
The `/upgrade` workflow follows the standard EWS v1.0 governance model:
|
|
44
|
+
|
|
45
|
+
- **Human confirmation required** before executing `kit update`
|
|
46
|
+
- **Post-upgrade verification** via `kit verify` is mandatory
|
|
47
|
+
- **Preservation verification** — all 7 protected items must be confirmed intact after upgrade
|
|
48
|
+
- **Rollback available** — `git checkout -- .agent/` restores pre-upgrade state if uncommitted
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Related Resources
|
|
53
|
+
|
|
54
|
+
- **Workflow**: `.agent/workflows/upgrade.md` (`/upgrade`)
|
|
55
|
+
- **Skill**: `.agent/skills/verification-loop/SKILL.md`
|
|
56
|
+
- **See also**: `.agent/rules/security.md` (secrets in upgrade payloads), `.agent/rules/git-workflow.md` (commit conventions after upgrade)
|