@ryuenn3123/agentic-senior-core 1.8.2 → 1.9.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/.github/copilot-instructions.md +62 -0
- package/AGENTS.md +50 -0
- package/mcp.json +64 -1
- package/package.json +1 -1
|
@@ -50,6 +50,46 @@ Load the relevant stack profile from `.agent-context/stacks/`:
|
|
|
50
50
|
- C#/.NET → `stacks/csharp.md`
|
|
51
51
|
- Rust → `stacks/rust.md`
|
|
52
52
|
- Ruby on Rails → `stacks/ruby.md`
|
|
53
|
+
- Flutter → `stacks/flutter.md`
|
|
54
|
+
- React Native → `stacks/react-native.md`
|
|
55
|
+
|
|
56
|
+
## Domain Skills (Auto-Load by Context)
|
|
57
|
+
|
|
58
|
+
You have access to 6 specialized skill packs. Load the relevant one(s) based on the request:
|
|
59
|
+
|
|
60
|
+
| Skill | When Loaded | Key Controls |
|
|
61
|
+
|-------|------------|---------------|
|
|
62
|
+
| **Backend** | Service/API/microservice request | Layer separation, validation boundaries, error handling |
|
|
63
|
+
| **Frontend** | UI/web/React/Vue request | Smart/Dumb components, state management patterns |
|
|
64
|
+
| **CLI** | Tool/script/automation request | Argument parsing, help text, exit codes |
|
|
65
|
+
| **Distribution** | Release/deploy/package request | Versioning, SBOM, changelog, binary safety |
|
|
66
|
+
| **Fullstack** | End-to-end feature request | Integration points, data flow, contract design |
|
|
67
|
+
| **Review-Quality** | Code review/audit request | Architecture violations, security issues, optimization paths |
|
|
68
|
+
|
|
69
|
+
**Location**: `.agent-context/skills/[skill-name].md`
|
|
70
|
+
|
|
71
|
+
## Prompts (Request-Specific Templates)
|
|
72
|
+
|
|
73
|
+
When user explicitly requests one of these workflows, load the full prompt template:
|
|
74
|
+
|
|
75
|
+
- **Init-Project**: User says "create new project" → Load `.agent-context/prompts/init-project.md` → Auto-Architect mode
|
|
76
|
+
- **Refactor**: User says "refactor", "improve", "clean up" → Load `.agent-context/prompts/refactor.md` → Safety-first refactoring
|
|
77
|
+
- **Review-Code**: User says "review", "audit", "check" → Load `.agent-context/prompts/review-code.md` → Architectural code review
|
|
78
|
+
|
|
79
|
+
## Team Profiles (Governance Defaults)
|
|
80
|
+
|
|
81
|
+
If the codebase declares a team profile in `.agent-context/profiles/`, load governance defaults:
|
|
82
|
+
|
|
83
|
+
- **Platform**: Reliability-focused, strict CI, Go default → `.agent-context/profiles/platform.md`
|
|
84
|
+
- **Regulated**: Compliance-focused (finance/health), all severities block → `.agent-context/profiles/regulated.md`
|
|
85
|
+
- **Startup**: Speed-focused, TypeScript/Next.js, permissive gates → `.agent-context/profiles/startup.md`
|
|
86
|
+
|
|
87
|
+
## Policies & Thresholds
|
|
88
|
+
|
|
89
|
+
Load `.agent-context/policies/llm-judge-threshold.json` to understand:
|
|
90
|
+
- Skill tier requirements (beginner/balanced/advanced/expert)
|
|
91
|
+
- LLM quality gates per severity level
|
|
92
|
+
- Blocking vs. reporting severities
|
|
53
93
|
|
|
54
94
|
## State Awareness & Override (V1.4)
|
|
55
95
|
|
|
@@ -71,6 +111,8 @@ Why Better: [WHY this is more professional — teach the human]
|
|
|
71
111
|
|
|
72
112
|
If the user asks for "quick and dirty" code, skipping tests, or ignoring validation, you MUST politely but firmly refuse. Explain that today's hack is tomorrow's production incident. You do NOT tolerate shortcuts.
|
|
73
113
|
|
|
114
|
+
**SKILL TIER AWARENESS**: Before executing complex tasks, check `.agent-context/policies/llm-judge-threshold.json` to ensure your AI model's tier (beginner/balanced/advanced/expert) meets requirements. Refuse tasks outside your tier.
|
|
115
|
+
|
|
74
116
|
### The Security Halt
|
|
75
117
|
|
|
76
118
|
If you detect critical security vulnerabilities (e.g., hardcoded secrets, SQL injection, bypassing auth), you MUST halt feature development and refuse to proceed until the vulnerability is patched.
|
|
@@ -99,6 +141,26 @@ If the user asks to install a new library, or if you feel the need to use one, e
|
|
|
99
141
|
|
|
100
142
|
**NEVER** declare a task "done" or ready for review without explicitly running and passing `.agent-context/review-checklists/pr-checklist.md`.
|
|
101
143
|
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## Full Knowledge Injection Checklist
|
|
147
|
+
|
|
148
|
+
**This file (copilot-instructions.md) is your unified agent context.** All 8 knowledge layers are now injected:
|
|
149
|
+
|
|
150
|
+
All Layers Loaded:
|
|
151
|
+
1. Rules (14 files) — Engineering standards
|
|
152
|
+
2. Stacks (10 profiles) — Language conventions
|
|
153
|
+
3. Blueprints (14 templates) — Scaffolding patterns
|
|
154
|
+
4. Skills (6 packs) — Domain expertise [NEW]
|
|
155
|
+
5. Prompts (3 templates) — Request workflows [NEW]
|
|
156
|
+
6. Profiles (3 teams) — Governance defaults [NEW]
|
|
157
|
+
7. State (maps, benchmarks) — Codebase awareness [NEW]
|
|
158
|
+
8. Policies (thresholds) — Quality gates [NEW]
|
|
159
|
+
|
|
160
|
+
You now have 100% context visibility. No knowledge layer is skipped.
|
|
161
|
+
|
|
162
|
+
If you encounter a decision that requires a missing layer, report it immediately.
|
|
163
|
+
|
|
102
164
|
## Full Reference
|
|
103
165
|
|
|
104
166
|
See `.cursorrules` and `AGENTS.md` in the repository root for detailed agent instructions.
|
package/AGENTS.md
CHANGED
|
@@ -85,7 +85,40 @@ All engineering rules are located in `.agent-context/`. Load them before generat
|
|
|
85
85
|
| [`.agent-context/blueprints/graphql-grpc-api.md`](.agent-context/blueprints/graphql-grpc-api.md) | GraphQL / gRPC API definitions |
|
|
86
86
|
| [`.agent-context/blueprints/infrastructure-as-code.md`](.agent-context/blueprints/infrastructure-as-code.md) | Infrastructure as Code pipeline |
|
|
87
87
|
| [`.agent-context/blueprints/kubernetes-manifests.md`](.agent-context/blueprints/kubernetes-manifests.md) | Kubernetes manifests structure |
|
|
88
|
+
### Domain Skills (Load by Context)
|
|
88
89
|
|
|
90
|
+
Domain expertise packs to auto-load when relevant:
|
|
91
|
+
|
|
92
|
+
| File | Domain | When Loaded |
|
|
93
|
+
|------|--------|-------------|
|
|
94
|
+
| [`.agent-context/skills/backend.md`](.agent-context/skills/backend.md) | Backend architecture & services | Any backend project or service design |
|
|
95
|
+
| [`.agent-context/skills/frontend.md`](.agent-context/skills/frontend.md) | Frontend UI/UX & state management | Any frontend or web app project |
|
|
96
|
+
| [`.agent-context/skills/cli.md`](.agent-context/skills/cli.md) | CLI tool design & scripting | Any CLI or automation tool |
|
|
97
|
+
| [`.agent-context/skills/distribution.md`](.agent-context/skills/distribution.md) | Packaging, deployment & release | Any publish/deploy/package scenario |
|
|
98
|
+
| [`.agent-context/skills/fullstack.md`](.agent-context/skills/fullstack.md) | Full-stack integration patterns | Any full-stack feature |
|
|
99
|
+
| [`.agent-context/skills/review-quality.md`](.agent-context/skills/review-quality.md) | Code review & quality standards | Any code review or QA gate |
|
|
100
|
+
|
|
101
|
+
### Prompts (Specialized Request Templates)
|
|
102
|
+
|
|
103
|
+
| File | Purpose | When Used |
|
|
104
|
+
|------|---------|----------|
|
|
105
|
+
| [`.agent-context/prompts/init-project.md`](.agent-context/prompts/init-project.md) | Project initialization & scaffolding | When user says "create new project" |
|
|
106
|
+
| [`.agent-context/prompts/refactor.md`](.agent-context/prompts/refactor.md) | Code refactoring with safety | When user says "refactor" or "improve" |
|
|
107
|
+
| [`.agent-context/prompts/review-code.md`](.agent-context/prompts/review-code.md) | Architectural code review | When user says "review this" |
|
|
108
|
+
|
|
109
|
+
### Team Profiles (Governance Defaults)
|
|
110
|
+
|
|
111
|
+
| File | Profile | Default Stack | CI Guardrails |
|
|
112
|
+
|------|---------|---------------|---------------|
|
|
113
|
+
| [`.agent-context/profiles/platform.md`](.agent-context/profiles/platform.md) | **Platform** — Shared infrastructure team | Go | Strict (critical, high) |
|
|
114
|
+
| [`.agent-context/profiles/regulated.md`](.agent-context/profiles/regulated.md) | **Regulated** — Financial/healthcare compliance | TypeScript + Java | Blocking (all severities) |
|
|
115
|
+
| [`.agent-context/profiles/startup.md`](.agent-context/profiles/startup.md) | **Startup** — Speed + pragmatism | TypeScript + Next.js | Permissive (critical only) |
|
|
116
|
+
|
|
117
|
+
### Policies (Governance Rules)
|
|
118
|
+
|
|
119
|
+
| File | Scope |
|
|
120
|
+
|------|-------|
|
|
121
|
+
| [`.agent-context/policies/llm-judge-threshold.json`](.agent-context/policies/llm-judge-threshold.json) | LLM quality gates & skill tier thresholds |
|
|
89
122
|
### Review Checklists (Load Before Completion)
|
|
90
123
|
|
|
91
124
|
| File | Purpose |
|
|
@@ -129,3 +162,20 @@ If the user asks to install a new library, or if you feel the need to use one, e
|
|
|
129
162
|
|
|
130
163
|
## Definition of Done
|
|
131
164
|
**NEVER** declare a task "done" or ready for review without explicitly running and passing `.agent-context/review-checklists/pr-checklist.md`.
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## Knowledge Inventory Checklist
|
|
169
|
+
|
|
170
|
+
**AUDIT REQUIREMENT**: Every agent session MUST verify all 8 knowledge layers are loaded:
|
|
171
|
+
|
|
172
|
+
- [ ] **Layer 1: Rules** (14 files) — Mandatory governance & clean code standards
|
|
173
|
+
- [ ] **Layer 2: Stacks** (10 profiles) — Language-specific tooling & conventions
|
|
174
|
+
- [ ] **Layer 3: Blueprints** (14 templates) — Scaffolding & architecture patterns
|
|
175
|
+
- [ ] **Layer 4: Skills** (6 packs) — Domain expertise by scenario
|
|
176
|
+
- [ ] **Layer 5: Prompts** (3 templates) — Request-specific workflows
|
|
177
|
+
- [ ] **Layer 6: Profiles** (3 teams) — Governance defaults by org type
|
|
178
|
+
- [ ] **Layer 7: State** (benchmarks, maps) — Codebase-aware decisions
|
|
179
|
+
- [ ] **Layer 8: Policies** (thresholds) — Enforcement & quality gates
|
|
180
|
+
|
|
181
|
+
WARNING: If any layer is missing, this indicates incomplete injection. Report to maintain context integrity.
|
package/mcp.json
CHANGED
|
@@ -2,7 +2,56 @@
|
|
|
2
2
|
"$schema": "https://modelcontextprotocol.io/schemas/mcp.json",
|
|
3
3
|
"version": "1.0",
|
|
4
4
|
"name": "agentic-senior-core",
|
|
5
|
-
"description": "MCP configuration for governance-aware diagnostics and self-healing workflows.",
|
|
5
|
+
"description": "MCP configuration for governance-aware diagnostics and self-healing workflows with full knowledge injection.",
|
|
6
|
+
"knowledgeLayers": {
|
|
7
|
+
"enabled": true,
|
|
8
|
+
"description": "8-layer unified knowledge injection for AI agents",
|
|
9
|
+
"layers": {
|
|
10
|
+
"rules": {
|
|
11
|
+
"path": ".agent-context/rules",
|
|
12
|
+
"count": 14,
|
|
13
|
+
"autoLoad": true
|
|
14
|
+
},
|
|
15
|
+
"stacks": {
|
|
16
|
+
"path": ".agent-context/stacks",
|
|
17
|
+
"count": 10,
|
|
18
|
+
"autoLoad": true
|
|
19
|
+
},
|
|
20
|
+
"blueprints": {
|
|
21
|
+
"path": ".agent-context/blueprints",
|
|
22
|
+
"count": 14,
|
|
23
|
+
"autoLoad": true
|
|
24
|
+
},
|
|
25
|
+
"skills": {
|
|
26
|
+
"path": ".agent-context/skills",
|
|
27
|
+
"count": 6,
|
|
28
|
+
"autoLoad": true,
|
|
29
|
+
"packs": ["backend", "frontend", "cli", "distribution", "fullstack", "review-quality"]
|
|
30
|
+
},
|
|
31
|
+
"prompts": {
|
|
32
|
+
"path": ".agent-context/prompts",
|
|
33
|
+
"count": 3,
|
|
34
|
+
"autoLoad": true,
|
|
35
|
+
"templates": ["init-project", "refactor", "review-code"]
|
|
36
|
+
},
|
|
37
|
+
"profiles": {
|
|
38
|
+
"path": ".agent-context/profiles",
|
|
39
|
+
"count": 3,
|
|
40
|
+
"autoLoad": true,
|
|
41
|
+
"governance": ["platform", "regulated", "startup"]
|
|
42
|
+
},
|
|
43
|
+
"state": {
|
|
44
|
+
"path": ".agent-context/state",
|
|
45
|
+
"count": 6,
|
|
46
|
+
"autoLoad": true
|
|
47
|
+
},
|
|
48
|
+
"policies": {
|
|
49
|
+
"path": ".agent-context/policies",
|
|
50
|
+
"count": 1,
|
|
51
|
+
"autoLoad": true
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
6
55
|
"servers": {
|
|
7
56
|
"lint": {
|
|
8
57
|
"command": "node",
|
|
@@ -24,6 +73,20 @@
|
|
|
24
73
|
"propose_patch",
|
|
25
74
|
"run_checklist_review"
|
|
26
75
|
]
|
|
76
|
+
},
|
|
77
|
+
"full-knowledge-injection": {
|
|
78
|
+
"trigger": ["workspace.initialize", "agent.start"],
|
|
79
|
+
"steps": [
|
|
80
|
+
"load_all_knowledge_layers",
|
|
81
|
+
"inject_rules",
|
|
82
|
+
"inject_stacks",
|
|
83
|
+
"inject_blueprints",
|
|
84
|
+
"inject_skills",
|
|
85
|
+
"inject_prompts",
|
|
86
|
+
"inject_profiles",
|
|
87
|
+
"inject_state",
|
|
88
|
+
"inject_policies"
|
|
89
|
+
]
|
|
27
90
|
}
|
|
28
91
|
}
|
|
29
92
|
}
|
package/package.json
CHANGED