@ryuenn3123/agentic-senior-core 2.0.5 → 2.0.7

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 (121) hide show
  1. package/.agent-context/blueprints/mobile-app.md +91 -21
  2. package/.agent-context/profiles/platform.md +13 -13
  3. package/.agent-context/profiles/regulated.md +13 -13
  4. package/.agent-context/profiles/startup.md +13 -13
  5. package/.agent-context/review-checklists/frontend-skill-parity.md +28 -28
  6. package/.agent-context/review-checklists/frontend-usability.md +33 -33
  7. package/.agent-context/review-checklists/release-operations.md +29 -29
  8. package/.agent-context/skills/README.md +62 -62
  9. package/.agent-context/skills/backend/README.md +67 -67
  10. package/.agent-context/skills/backend/architecture.md +360 -360
  11. package/.agent-context/skills/backend/compatibility-manifest.json +8 -8
  12. package/.agent-context/skills/backend/data-access.md +230 -230
  13. package/.agent-context/skills/backend/errors.md +137 -137
  14. package/.agent-context/skills/backend/validation.md +116 -116
  15. package/.agent-context/skills/backend.md +28 -28
  16. package/.agent-context/skills/cli/README.md +55 -49
  17. package/.agent-context/skills/cli/compatibility-manifest.json +8 -8
  18. package/.agent-context/skills/cli/init.md +37 -37
  19. package/.agent-context/skills/cli/output.md +35 -35
  20. package/.agent-context/skills/cli/safety-telemetry.md +39 -0
  21. package/.agent-context/skills/cli/upgrade.md +37 -37
  22. package/.agent-context/skills/cli.md +31 -28
  23. package/.agent-context/skills/distribution/.evidence/compatibility-manifest.json +9 -0
  24. package/.agent-context/skills/distribution/.evidence/sbom-excerpt.json +6 -0
  25. package/.agent-context/skills/distribution/.evidence/test-report.json +8 -0
  26. package/.agent-context/skills/distribution/CHANGELOG.md +7 -0
  27. package/.agent-context/skills/distribution/README.md +27 -19
  28. package/.agent-context/skills/distribution/compatibility-manifest.json +8 -8
  29. package/.agent-context/skills/distribution/compatibility.md +31 -31
  30. package/.agent-context/skills/distribution/package.json +5 -0
  31. package/.agent-context/skills/distribution/provenance-attestation.md +47 -0
  32. package/.agent-context/skills/distribution/publish.md +36 -36
  33. package/.agent-context/skills/distribution/rollback.md +31 -31
  34. package/.agent-context/skills/distribution/tests/.gitkeep +1 -0
  35. package/.agent-context/skills/distribution.md +31 -28
  36. package/.agent-context/skills/frontend/.evidence/compatibility-manifest.json +9 -0
  37. package/.agent-context/skills/frontend/.evidence/sbom-excerpt.json +6 -0
  38. package/.agent-context/skills/frontend/.evidence/test-report.json +8 -0
  39. package/.agent-context/skills/frontend/CHANGELOG.md +7 -0
  40. package/.agent-context/skills/frontend/README.md +49 -36
  41. package/.agent-context/skills/frontend/accessibility.md +107 -107
  42. package/.agent-context/skills/frontend/compatibility-manifest.json +8 -8
  43. package/.agent-context/skills/frontend/conversion-clarity.md +51 -0
  44. package/.agent-context/skills/frontend/motion.md +66 -66
  45. package/.agent-context/skills/frontend/package.json +5 -0
  46. package/.agent-context/skills/frontend/performance.md +62 -62
  47. package/.agent-context/skills/frontend/responsive-delivery.md +41 -0
  48. package/.agent-context/skills/frontend/tests/.gitkeep +1 -0
  49. package/.agent-context/skills/frontend/ui-architecture.md +128 -128
  50. package/.agent-context/skills/frontend.md +35 -29
  51. package/.agent-context/skills/fullstack/.evidence/compatibility-manifest.json +9 -0
  52. package/.agent-context/skills/fullstack/.evidence/sbom-excerpt.json +6 -0
  53. package/.agent-context/skills/fullstack/.evidence/test-report.json +8 -0
  54. package/.agent-context/skills/fullstack/CHANGELOG.md +7 -0
  55. package/.agent-context/skills/fullstack/README.md +27 -19
  56. package/.agent-context/skills/fullstack/compatibility-manifest.json +8 -8
  57. package/.agent-context/skills/fullstack/contracts.md +52 -52
  58. package/.agent-context/skills/fullstack/end-to-end.md +41 -41
  59. package/.agent-context/skills/fullstack/feature-slicing.md +64 -64
  60. package/.agent-context/skills/fullstack/package.json +5 -0
  61. package/.agent-context/skills/fullstack/release-coordination.md +51 -0
  62. package/.agent-context/skills/fullstack/tests/.gitkeep +1 -0
  63. package/.agent-context/skills/fullstack.md +29 -26
  64. package/.agent-context/skills/index.json +107 -107
  65. package/.agent-context/skills/review-quality/.evidence/compatibility-manifest.json +9 -0
  66. package/.agent-context/skills/review-quality/.evidence/sbom-excerpt.json +6 -0
  67. package/.agent-context/skills/review-quality/.evidence/test-report.json +8 -0
  68. package/.agent-context/skills/review-quality/CHANGELOG.md +7 -0
  69. package/.agent-context/skills/review-quality/README.md +27 -19
  70. package/.agent-context/skills/review-quality/benchmark.md +29 -29
  71. package/.agent-context/skills/review-quality/compatibility-manifest.json +8 -8
  72. package/.agent-context/skills/review-quality/package.json +5 -0
  73. package/.agent-context/skills/review-quality/planning.md +37 -37
  74. package/.agent-context/skills/review-quality/release-decision.md +49 -0
  75. package/.agent-context/skills/review-quality/security.md +33 -33
  76. package/.agent-context/skills/review-quality/tests/.gitkeep +1 -0
  77. package/.agent-context/skills/review-quality.md +30 -27
  78. package/.agent-context/stacks/flutter.md +16 -16
  79. package/.agent-context/stacks/react-native.md +16 -16
  80. package/.agent-context/state/architecture-map.md +25 -25
  81. package/.agent-context/state/benchmark-analysis.json +431 -431
  82. package/.agent-context/state/benchmark-thresholds.json +10 -10
  83. package/.agent-context/state/benchmark-watchlist.json +19 -19
  84. package/.agent-context/state/dependency-map.md +32 -32
  85. package/.agent-context/state/quality-trend-report.json +16 -6
  86. package/.agent-context/state/skill-platform.json +38 -38
  87. package/.agent-context/state/weekly-governance-report.json +126 -0
  88. package/.agent-override.md +36 -36
  89. package/.cursorrules +1 -1
  90. package/.gemini/instructions.md +20 -20
  91. package/.github/ISSUE_TEMPLATE/v1.7-frontend-work-item.yml +54 -54
  92. package/.github/copilot-instructions.md +20 -20
  93. package/.github/workflows/benchmark-detection.yml +38 -38
  94. package/.github/workflows/benchmark-intelligence.yml +50 -50
  95. package/.github/workflows/frontend-usability-gate.yml +36 -36
  96. package/.github/workflows/governance-weekly-report.yml +43 -0
  97. package/.github/workflows/release-gate.yml +32 -32
  98. package/.github/workflows/sbom-compliance.yml +32 -32
  99. package/.windsurfrules +1 -1
  100. package/AGENTS.md +27 -27
  101. package/README.md +383 -368
  102. package/lib/cli/commands/optimize.mjs +171 -171
  103. package/lib/cli/compatibility.mjs +124 -124
  104. package/lib/cli/constants.mjs +35 -0
  105. package/lib/cli/token-optimization.mjs +275 -275
  106. package/lib/cli/utils.mjs +4 -1
  107. package/mcp.json +92 -92
  108. package/package.json +2 -1
  109. package/scripts/benchmark-gate.mjs +121 -121
  110. package/scripts/benchmark-intelligence.mjs +140 -140
  111. package/scripts/detection-benchmark.mjs +138 -138
  112. package/scripts/frontend-usability-audit.mjs +87 -87
  113. package/scripts/generate-sbom.mjs +61 -61
  114. package/scripts/governance-weekly-report.mjs +293 -0
  115. package/scripts/init-project.ps1 +104 -104
  116. package/scripts/llm-judge.mjs +664 -664
  117. package/scripts/quality-trend-report.mjs +288 -288
  118. package/scripts/release-gate.mjs +261 -259
  119. package/scripts/skill-tier-policy.mjs +75 -75
  120. package/scripts/token-optimization-benchmark.mjs +252 -252
  121. package/scripts/validate.mjs +874 -865
package/README.md CHANGED
@@ -1,368 +1,383 @@
1
- <div align="center">
2
-
3
- # Agentic-Senior-Core
4
-
5
- ### Force your AI Agent to code like a Staff Engineer, not a Junior.
6
-
7
- [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
8
- [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md)
9
-
10
- **Universal engineering standards for AI coding agents.**
11
- Works with Cursor · Windsurf · GitHub Copilot · Claude Code · Gemini · Any LLM-powered IDE.
12
-
13
- </div>
14
-
15
- ---
16
-
17
- ## What is This?
18
-
19
- This is **not** a boilerplate. It's a **dynamic governance engine**: strict engineering rules, stack profiles, blueprints, review checklists, override policies, and state maps that keep AI output production-grade.
20
-
21
- Think of it as giving your AI pair programmer **10 years of production experience** through carefully crafted instructions and guardrails.
22
-
23
- ### Before Agentic-Senior-Core
24
- ```text
25
- You: "Build me a user registration API"
26
- AI: *Creates a single file with no validation, any types, console.log,
27
- hardcoded secrets, no error handling, and 47 TODO comments*
28
- ```
29
-
30
- ### After Agentic-Senior-Core
31
- ```text
32
- You: "Build me a user registration API"
33
- AI: *Creates properly layered modules with Zod validation, typed errors,
34
- structured logging, security headers, tests, and API documentation*
35
- ```
36
-
37
- ---
38
-
39
- ## Quick Start
40
-
41
- ### Zero-Install: GitHub Template (New user friendly!)
42
-
43
- The absolute fastest way to start your next top-tier project is to use this repository as a template.
44
- The **Use this template** button is in the GitHub repository header (top-right area), not inside this README text.
45
- If you prefer a direct link, open: **[Create from template](https://github.com/fatidaprilian/Agentic-Senior-Core/generate)**.
46
- Your new repository will instantly possess all the rules, configurations, and AI context files directly out of the box — zero CLI needed.
47
-
48
- ### Option 0: NPM Install (Local or Global)
49
-
50
- If you already know you want the CLI from npm, use one of these paths:
51
-
52
- ```bash
53
- npm exec --yes @ryuenn3123/agentic-senior-core init
54
- npm install -g @ryuenn3123/agentic-senior-core
55
- agentic-senior-core init
56
- ```
57
-
58
- ### Option 1: Interactive via GitHub Source (Pre-publish friendly)
59
-
60
- If npm package publication is not ready yet, run the CLI directly from GitHub and still keep the full interactive experience.
61
-
62
- ```bash
63
- npm exec --yes --package=github:fatidaprilian/Agentic-Senior-Core agentic-senior-core init .
64
- ```
65
-
66
- This gives the same interactive prompts to choose your profile (`beginner`, `balanced`, `strict`), stack, blueprint, and CI guardrails.
67
-
68
- If you want a plug-and-play starter instead of answering every question, use a preset:
69
-
70
- ```bash
71
- npx @ryuenn3123/agentic-senior-core init --preset frontend-web
72
- npx @ryuenn3123/agentic-senior-core init --preset backend-api
73
- npx @ryuenn3123/agentic-senior-core init --preset mobile-react-native
74
- ```
75
-
76
- ### Option 2: GitHub Bootstrap Scripts (No npx required)
77
-
78
- Run directly from this repository bootstrap script and inject rules into your project root.
79
-
80
- Bootstrap script paths: `scripts/init-project.ps1` (Windows) and `scripts/init-project.sh` (Linux/macOS).
81
-
82
- Windows PowerShell:
83
-
84
- ```powershell
85
- powershell -ExecutionPolicy Bypass -File .\scripts\init-project.ps1 -TargetDirectory . -Profile balanced -Stack typescript -Blueprint api-nextjs -Ci true
86
- ```
87
-
88
- Linux/macOS Bash:
89
-
90
- ```bash
91
- bash ./scripts/init-project.sh . --profile balanced --stack typescript --blueprint api-nextjs --ci true
92
- ```
93
-
94
- Both scripts clone Agentic-Senior-Core into a temporary directory, run the same CLI engine, then clean up automatically.
95
-
96
- If you want interactive selection, omit `-Profile`, `-Stack`, `-Blueprint`, and `-Ci` on the script command.
97
-
98
- ### Option 3: Interactive Auto-Setup via npm/npx (Post-publish)
99
-
100
- If you have an existing project and want to infuse it with Staff-level context:
101
-
102
- ```bash
103
- npx @ryuenn3123/agentic-senior-core init
104
- ```
105
-
106
- Use team defaults (V2.0 track) with profile packs:
107
-
108
- ```bash
109
- npx @ryuenn3123/agentic-senior-core init --profile-pack startup
110
- ```
111
-
112
- The CLI is smart. It auto-detects your current development stack, helps you build a governance profile (select from `beginner`, `balanced`, or `strict`), and writes the compiled rules straight to your root automatically!
113
-
114
- If you are totally new to concepts like blueprints and guardrails, no problem — just run:
115
- ```bash
116
- npx @ryuenn3123/agentic-senior-core init --newbie
117
- ```
118
-
119
- ### Skill Selector
120
-
121
- Use the unified skill selector to pick the right pack for a domain:
122
-
123
- ```bash
124
- agentic-senior-core skill frontend --tier advance
125
- agentic-senior-core skill backend --tier expert
126
- agentic-senior-core skill fullstack --json
127
- ```
128
-
129
- When you run `init`, the CLI now auto-activates the matching skill packs for the chosen stack and blueprint, so the compiled governance context includes the relevant frontend, backend, fullstack, and CLI guidance by default.
130
-
131
- ### Token Optimization Mode (Enabled by Default on Init)
132
-
133
- Use this mode when your AI session is shell-heavy and context usage is high.
134
- By default, every `init` flow enables token optimization automatically (npx, npm exec, global CLI, preset, and interactive wizard).
135
- The optimization engine works in two modes:
136
- - Native fallback mode (no external dependency required)
137
- - External proxy mode (auto-detected when available)
138
-
139
- Quick start:
140
-
141
- ```bash
142
- agentic-senior-core optimize . --agent copilot --enable
143
- agentic-senior-core optimize . --show
144
- agentic-senior-core optimize . --disable
145
-
146
- # Auto-enable during project initialization
147
- npx @ryuenn3123/agentic-senior-core init --token-optimize --token-agent copilot
148
-
149
- # Opt out when needed
150
- npx @ryuenn3123/agentic-senior-core init --no-token-optimize
151
- ```
152
-
153
- When enabled, the CLI writes `.agent-context/state/token-optimization.json`, regenerates compiled rules, and adds compact command guidance to `.cursorrules` and `.windsurfrules`.
154
- If an external token proxy is available, the CLI prints setup hints. If not, native fallback guidance stays active, so outside users are not forced to install extra tooling.
155
-
156
- ### Token Efficiency Benchmark Snapshot
157
-
158
- Latest local benchmark (2026-04-11) from `.agent-context/state/token-optimization-benchmark.json`:
159
-
160
- | Scenario | Baseline Token Estimate | Agentic Native Token Estimate | Native Savings | RTK Token Estimate | RTK Status |
161
- |----------|-------------------------|-------------------------------|----------------|--------------------|------------|
162
- | Latest commit detail review | 3798 | 177 | 95.34% | 3798 | Detected (`rtk` v0.35.0) |
163
- | Commit history review | 3730 | 889 | 76.17% | 1610 | Detected (`rtk` v0.35.0) |
164
- | Search result scan | 5339 | 1099 | 79.42% | 5339 | Detected (`rtk` v0.35.0) |
165
- | Average | - | - | 83.64% | 18.95% savings | Detected (`rtk` v0.35.0) |
166
-
167
- Method note:
168
- - Estimate formula is `ceil(output_chars / 4)`.
169
- - This is a command-output estimate, not provider-specific tokenizer output.
170
- - RTK results depend on host utilities. On Windows hosts without GNU `grep` or `ls`, RTK may fall back to `rtk git ...` paths for some scenarios.
171
-
172
- Reproduce and refresh this table:
173
-
174
- ```bash
175
- npm run benchmark:token
176
- ```
177
-
178
- ### Install and Setup Choices
179
-
180
- The CLI now supports a smaller decision surface for first-time setup:
181
-
182
- | Path | Best for |
183
- |------|----------|
184
- | `agentic-senior-core launch` | Numbered interactive chooser for install and preset paths |
185
- | GitHub Template | Zero-install project bootstrap |
186
- | npm exec / npx | One-off setup on an existing repo |
187
- | npm install -g | Repeated local use from the shell |
188
- | `--preset` | Fast bootstrap with a curated stack and blueprint |
189
- | `optimize` | Optional token-aware shell output guidance with native fallback |
190
-
191
- ### Supported Stack Map
192
-
193
- Use the stack that matches the project you are actually starting:
194
-
195
- | Stack | Recommended Blueprint | Best Fit |
196
- |-------|-----------------------|----------|
197
- | TypeScript | api-nextjs | Web app, fullstack product, CLI tooling |
198
- | Python | fastapi-service | API service, automation, data-heavy backend |
199
- | Go | go-service | Small, fast services and platform tooling |
200
- | Java | spring-boot-api | Enterprise APIs and service-oriented systems |
201
- | PHP | laravel-api | Conventional product backends |
202
- | C# | aspnet-api | Microsoft stack services and enterprise apps |
203
- | Rust | go-service | Performance-sensitive backend work |
204
- | Ruby | laravel-api | Mature product services and backend workflows |
205
- | React Native | mobile-app | Cross-platform mobile applications |
206
- | Flutter | mobile-app | Cross-platform mobile applications |
207
-
208
- ### Benchmark Comparison (Current State)
209
-
210
- | Capability | antigravity-awesome-skills | awesome-copilot | MiniMax-AI/skills | Agentic-Senior-Core |
211
- |------------|----------------------------|-----------------|-------------------|---------------------|
212
- | Skill organization | Large curated library | Resource catalog + governance docs | Domain-focused packs | Unified folder-based domain packs with tier routing |
213
- | Architecture guidance | Strong practical patterns | Strong SoC and layered architecture | Strong applied templates | Consolidated architecture + domain enforcement |
214
- | CLI governance | Limited | Moderate | Moderate | Init/upgrade/output governance with dry-run and structured reports |
215
- | Distribution operations | Basic | Moderate | Strong release checklists | Publish, rollback, compatibility gates plus benchmark/sbom flows |
216
- | Review quality | Pattern-oriented | Checklist-oriented | Gate-oriented | Planning/security/benchmark review model with CI integration |
217
-
218
- ### Option 4: Clone and Play
219
- Want to poke around under the hood? Just clone the repo and `npx @ryuenn3123/agentic-senior-core init` locally. No runtime dependencies needed — everything uses native Node.js!
220
-
221
- ### Upgrade Existing Governance Packs (V1.x to V2.x)
222
-
223
- Yes, the upgrade flow still works. Use `--dry-run` first to preview changes, then apply with `--yes` when you are ready.
224
-
225
- Preview migration changes safely:
226
-
227
- ```bash
228
- npx @ryuenn3123/agentic-senior-core upgrade --dry-run
229
- ```
230
-
231
- Apply migration updates:
232
-
233
- ```bash
234
- npx @ryuenn3123/agentic-senior-core upgrade --yes
235
- ```
236
-
237
- ---
238
-
239
- ## Further Reading
240
-
241
- Our documentation has shifted into dedicated tracks to keep this README light:
242
- - **[FAQ / Concepts](docs/faq.md)**: Unfamiliar with Stacks, Blueprints, or Guardrails? Stalled on basic logic? Start here.
243
- - **[Deep Dive / Internals](docs/deep-dive.md)**: Explore the dynamic compiler, severity profiles, MCP integration, and granular LLM overrides here.
244
- - **[V2 Upgrade Playbook](docs/v2-upgrade-playbook.md)**: Benchmark-driven upgrade execution from antigravity-awesome-skills, awesome-copilot, and MiniMax skills.
245
- - **[Skill Platform](.agent-context/skills/README.md)**: Unified skill packs for frontend, backend, fullstack, CLI, distribution, and review quality with `advance` as the default tier.
246
- The skill platform is now folder-based, so each domain has its own README and topic docs like a curated skills library.
247
-
248
- ---
249
-
250
- ## Core Capabilities
251
-
252
- - **Delivery Engine (CLI):** Interactive setup via GitHub source, bootstrap scripts, or `npx` after publish. Supported by a robust transactional installer with rollback protection.
253
- - **Verified Skill Marketplace:** Distribute and validate plugins securely with automated 4-dimension Trust Scoring and Evidence Bundles constraint validation.
254
- - **Dynamic Context Compiler:** Merges universal rules + selected stack + selected blueprint + optional CI guardrails into one dense, indexed rule file.
255
- - **Codebase Intelligence:** `.agent-context/state/` gives architecture/dependency boundaries so the agent understands high-risk areas.
256
- - **Override System:** `.agent-override.md` allows controlled enterprise exceptions without forking core rules.
257
- - **Automated Guardrails:** CI blueprints include LLM-as-a-Judge flow using `pr-checklist.md`.
258
- - **Pre-Publish Safety:** Built-in forbidden content checks detect hardcoded secrets and stray debugger artifacts before hitting the NPM registry.
259
- - **Machine-Readable CI Output:** LLM Judge emits `JSON_REPORT` payloads and writes `.agent-context/state/llm-judge-report.json` for PR/MR annotation tooling.
260
- - **MCP Self-Healing Loop:** `mcp.json` defines diagnostics + fix proposal workflow when lint/CI fails.
261
-
262
- ---
263
-
264
- ## Repository Structure
265
-
266
- ```text
267
- .
268
- ├── .cursorrules # Dynamic compiled governance entry point
269
- ├── .windsurfrules # Dynamic compiled governance entry point
270
- ├── .agent-override.md # Team-specific exceptions (scoped + expiry)
271
- ├── mcp.json # MCP self-healing workflow config
272
- ├── AGENTS.md # Universal agent discovery
273
- ├── .github/copilot-instructions.md # GitHub Copilot entry point
274
- ├── .gemini/instructions.md # Antigravity / Gemini entry point
275
- ├── bin/
276
- │ └── agentic-senior-core.js # Interactive CLI (Delivery Engine)
277
- ├── .agent-context/
278
- ├── rules/ # Universal engineering laws
279
- ├── stacks/ # Language-specific profiles
280
- ├── blueprints/ # Scaffolding and pipeline templates
281
- ├── review-checklists/ # AI self-audit guides
282
- ├── prompts/ # Ready-to-use prompts
283
- │ └── state/ # Architecture and dependency state maps
284
- ├── architecture-map.md
285
- │ └── dependency-map.md
286
- ├── scripts/
287
- │ ├── validate.mjs # Repository validator
288
- │ ├── llm-judge.mjs # LLM-as-a-Judge CI gate
289
- │ ├── init-project.sh # GitHub bootstrap script (Linux/macOS)
290
- └── init-project.ps1 # GitHub bootstrap script (Windows)
291
- ├── docs/
292
- ├── faq.md
293
- └── deep-dive.md
294
- ├── tests/
295
- │ ├── cli-smoke.test.mjs
296
- └── llm-judge.test.mjs
297
- ├── package.json
298
- ├── CONTRIBUTING.md
299
- ├── LICENSE
300
- └── README.md
301
- ```
302
-
303
- ---
304
-
305
- ## Validation
306
-
307
- Ensure everything is running smoothly before merging rules patches:
308
-
309
- ```bash
310
- npm run validate
311
- ```
312
-
313
- Track stack-detection KPI trends:
314
-
315
- ```bash
316
- npm run benchmark:detection
317
- ```
318
-
319
- ---
320
-
321
- ## Roadmap
322
-
323
- ### Completed Milestones
324
- - V1.0 to V1.3: Core rules, multi-language stacks, advanced architecture patterns, and infrastructure blueprints.
325
- - V1.4: Dynamic Governance Engine (interactive CLI, context compiler, state maps, override system, guardrails, MCP self-healing).
326
- - V1.5: Newbie-First Experience (Node-first runtime, zero-install onboarding path, smart auto-detection, profile presets, LLM severity thresholds, docs split, smoke tests).
327
-
328
- ### V1.6 (Released) — Enterprise Reliability and Team Workflow
329
- - Team profile packs and safer override governance shipped.
330
- - CI annotation standardization and stronger detection transparency shipped.
331
- - Upgrade assistant and benchmark coverage shipped.
332
-
333
- ### V1.7 (Released) — Frontend Product Experience Governance Pack
334
- - Frontend usability checklist, execution playbook, and issue template shipped.
335
- - Frontend usability audit script and CI artifact workflow shipped.
336
-
337
- ### V1.8 (Released) — Enterprise Release Operations and Compliance
338
- - Release-gate automation shipped with machine-readable artifact output.
339
- - CycloneDX SBOM generation and compliance artifact workflow shipped.
340
- - Operations playbook and release-operations checklist shipped.
341
-
342
- ### Current Forward Plan
343
- - V2.0: Skill marketplace trust tiers, transactional installs, rollback safety, and launch-menu onboarding.
344
- - V2.5: Cross-model benchmark harness and anti-regression quality gates.
345
- - V3.0: Enterprise governance cloud, policy drift detection, and org-level override registry.
346
-
347
- Detailed timeline and success metrics: [docs/roadmap.md](docs/roadmap.md)
348
-
349
- ---
350
-
351
- ## Contributing
352
-
353
- See [CONTRIBUTING.md](CONTRIBUTING.md) for contribution standards and workflow.
354
-
355
- ---
356
-
357
- ## License
358
-
359
- MIT Use freely, enforce strictly.
360
-
361
- ---
362
-
363
- <div align="center">
364
-
365
- **Stop letting AI write junior code.**
366
- **Give it the rules of a Staff Engineer.**
367
-
368
- </div>
1
+ <div align="center">
2
+
3
+ # Agentic-Senior-Core
4
+
5
+ ### Force your AI Agent to code like a Staff Engineer, not a Junior.
6
+
7
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
8
+ [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md)
9
+
10
+ **Universal engineering standards for AI coding agents.**
11
+ Works with Cursor · Windsurf · GitHub Copilot · Claude Code · Gemini · Any LLM-powered IDE.
12
+
13
+ </div>
14
+
15
+ ---
16
+
17
+ ## What is This?
18
+
19
+ This is **not** a boilerplate. It's a **dynamic governance engine**: strict engineering rules, stack profiles, blueprints, review checklists, override policies, and state maps that keep AI output production-grade.
20
+
21
+ Think of it as giving your AI pair programmer **10 years of production experience** through carefully crafted instructions and guardrails.
22
+
23
+ ### Before Agentic-Senior-Core
24
+ ```text
25
+ You: "Build me a user registration API"
26
+ AI: *Creates a single file with no validation, any types, console.log,
27
+ hardcoded secrets, no error handling, and 47 TODO comments*
28
+ ```
29
+
30
+ ### After Agentic-Senior-Core
31
+ ```text
32
+ You: "Build me a user registration API"
33
+ AI: *Creates properly layered modules with Zod validation, typed errors,
34
+ structured logging, security headers, tests, and API documentation*
35
+ ```
36
+
37
+ ---
38
+
39
+ ## Quick Start
40
+
41
+ ### Zero-Install: GitHub Template (New user friendly!)
42
+
43
+ The absolute fastest way to start your next top-tier project is to use this repository as a template.
44
+ The **Use this template** button is in the GitHub repository header (top-right area), not inside this README text.
45
+ If you prefer a direct link, open: **[Create from template](https://github.com/fatidaprilian/Agentic-Senior-Core/generate)**.
46
+ Your new repository will instantly possess all the rules, configurations, and AI context files directly out of the box — zero CLI needed.
47
+
48
+ ### Option 0: NPM Install (Local or Global)
49
+
50
+ If you already know you want the CLI from npm, use one of these paths:
51
+
52
+ ```bash
53
+ npm exec --yes @ryuenn3123/agentic-senior-core init
54
+ npm install -g @ryuenn3123/agentic-senior-core
55
+ agentic-senior-core init
56
+ ```
57
+
58
+ ### Option 1: Interactive via GitHub Source (Pre-publish friendly)
59
+
60
+ If npm package publication is not ready yet, run the CLI directly from GitHub and still keep the full interactive experience.
61
+
62
+ ```bash
63
+ npm exec --yes --package=github:fatidaprilian/Agentic-Senior-Core agentic-senior-core init .
64
+ ```
65
+
66
+ This gives the same interactive prompts to choose your profile (`beginner`, `balanced`, `strict`), stack, blueprint, and CI guardrails.
67
+
68
+ If you want a plug-and-play starter instead of answering every question, use a preset:
69
+
70
+ ```bash
71
+ npx @ryuenn3123/agentic-senior-core init --preset frontend-web
72
+ npx @ryuenn3123/agentic-senior-core init --preset backend-api
73
+ npx @ryuenn3123/agentic-senior-core init --preset mobile-react-native
74
+ npx @ryuenn3123/agentic-senior-core init --preset java-enterprise-api
75
+ npx @ryuenn3123/agentic-senior-core init --preset dotnet-enterprise-api
76
+ ```
77
+
78
+ Expanded preset catalog:
79
+
80
+ - `frontend-web`, `backend-api`, `fullstack-product`, `platform-governance`
81
+ - `mobile-react-native`, `mobile-flutter`, `observability-platform`
82
+ - `typescript-nestjs-service`, `java-enterprise-api`, `dotnet-enterprise-api`, `php-laravel-api`, `kubernetes-platform`
83
+
84
+ ### Option 2: GitHub Bootstrap Scripts (No npx required)
85
+
86
+ Run directly from this repository bootstrap script and inject rules into your project root.
87
+
88
+ Bootstrap script paths: `scripts/init-project.ps1` (Windows) and `scripts/init-project.sh` (Linux/macOS).
89
+
90
+ Windows PowerShell:
91
+
92
+ ```powershell
93
+ powershell -ExecutionPolicy Bypass -File .\scripts\init-project.ps1 -TargetDirectory . -Profile balanced -Stack typescript -Blueprint api-nextjs -Ci true
94
+ ```
95
+
96
+ Linux/macOS Bash:
97
+
98
+ ```bash
99
+ bash ./scripts/init-project.sh . --profile balanced --stack typescript --blueprint api-nextjs --ci true
100
+ ```
101
+
102
+ Both scripts clone Agentic-Senior-Core into a temporary directory, run the same CLI engine, then clean up automatically.
103
+
104
+ If you want interactive selection, omit `-Profile`, `-Stack`, `-Blueprint`, and `-Ci` on the script command.
105
+
106
+ ### Option 3: Interactive Auto-Setup via npm/npx (Post-publish)
107
+
108
+ If you have an existing project and want to infuse it with Staff-level context:
109
+
110
+ ```bash
111
+ npx @ryuenn3123/agentic-senior-core init
112
+ ```
113
+
114
+ Use team defaults (V2.0 track) with profile packs:
115
+
116
+ ```bash
117
+ npx @ryuenn3123/agentic-senior-core init --profile-pack startup
118
+ ```
119
+
120
+ The CLI is smart. It auto-detects your current development stack, helps you build a governance profile (select from `beginner`, `balanced`, or `strict`), and writes the compiled rules straight to your root automatically!
121
+
122
+ If you are totally new to concepts like blueprints and guardrails, no problem — just run:
123
+ ```bash
124
+ npx @ryuenn3123/agentic-senior-core init --newbie
125
+ ```
126
+
127
+ ### Skill Selector
128
+
129
+ Use the unified skill selector to pick the right pack for a domain:
130
+
131
+ ```bash
132
+ agentic-senior-core skill frontend --tier advance
133
+ agentic-senior-core skill backend --tier expert
134
+ agentic-senior-core skill fullstack --json
135
+ ```
136
+
137
+ When you run `init`, the CLI now auto-activates the matching skill packs for the chosen stack and blueprint, so the compiled governance context includes the relevant frontend, backend, fullstack, and CLI guidance by default.
138
+
139
+ ### Token Optimization Mode (Enabled by Default on Init)
140
+
141
+ Use this mode when your AI session is shell-heavy and context usage is high.
142
+ By default, every `init` flow enables token optimization automatically (npx, npm exec, global CLI, preset, and interactive wizard).
143
+ The optimization engine works in two modes:
144
+ - Native fallback mode (no external dependency required)
145
+ - External proxy mode (auto-detected when available)
146
+
147
+ Quick start:
148
+
149
+ ```bash
150
+ agentic-senior-core optimize . --agent copilot --enable
151
+ agentic-senior-core optimize . --show
152
+ agentic-senior-core optimize . --disable
153
+
154
+ # Auto-enable during project initialization
155
+ npx @ryuenn3123/agentic-senior-core init --token-optimize --token-agent copilot
156
+
157
+ # Opt out when needed
158
+ npx @ryuenn3123/agentic-senior-core init --no-token-optimize
159
+ ```
160
+
161
+ When enabled, the CLI writes `.agent-context/state/token-optimization.json`, regenerates compiled rules, and adds compact command guidance to `.cursorrules` and `.windsurfrules`.
162
+ If an external token proxy is available, the CLI prints setup hints. If not, native fallback guidance stays active, so outside users are not forced to install extra tooling.
163
+
164
+ ### Token Efficiency Benchmark Snapshot
165
+
166
+ Latest local benchmark (2026-04-11) from `.agent-context/state/token-optimization-benchmark.json`:
167
+
168
+ | Scenario | Baseline Token Estimate | Agentic Native Token Estimate | Native Savings | RTK Token Estimate | RTK Status |
169
+ |----------|-------------------------|-------------------------------|----------------|--------------------|------------|
170
+ | Latest commit detail review | 3798 | 177 | 95.34% | 3798 | Detected (`rtk` v0.35.0) |
171
+ | Commit history review | 3730 | 889 | 76.17% | 1610 | Detected (`rtk` v0.35.0) |
172
+ | Search result scan | 5339 | 1099 | 79.42% | 5339 | Detected (`rtk` v0.35.0) |
173
+ | Average | - | - | 83.64% | 18.95% savings | Detected (`rtk` v0.35.0) |
174
+
175
+ Method note:
176
+ - Estimate formula is `ceil(output_chars / 4)`.
177
+ - This is a command-output estimate, not provider-specific tokenizer output.
178
+ - RTK results depend on host utilities. On Windows hosts without GNU `grep` or `ls`, RTK may fall back to `rtk git ...` paths for some scenarios.
179
+
180
+ Reproduce and refresh this table:
181
+
182
+ ```bash
183
+ npm run benchmark:token
184
+ ```
185
+
186
+ ### Install and Setup Choices
187
+
188
+ The CLI now supports a smaller decision surface for first-time setup:
189
+
190
+ | Path | Best for |
191
+ |------|----------|
192
+ | `agentic-senior-core launch` | Numbered interactive chooser for install and preset paths |
193
+ | GitHub Template | Zero-install project bootstrap |
194
+ | npm exec / npx | One-off setup on an existing repo |
195
+ | npm install -g | Repeated local use from the shell |
196
+ | `--preset` | Fast bootstrap with a curated stack and blueprint |
197
+ | `optimize` | Optional token-aware shell output guidance with native fallback |
198
+
199
+ ### Supported Stack Map
200
+
201
+ Use the stack that matches the project you are actually starting:
202
+
203
+ | Stack | Recommended Blueprint | Best Fit |
204
+ |-------|-----------------------|----------|
205
+ | TypeScript | api-nextjs | Web app, fullstack product, CLI tooling |
206
+ | Python | fastapi-service | API service, automation, data-heavy backend |
207
+ | Go | go-service | Small, fast services and platform tooling |
208
+ | Java | spring-boot-api | Enterprise APIs and service-oriented systems |
209
+ | PHP | laravel-api | Conventional product backends |
210
+ | C# | aspnet-api | Microsoft stack services and enterprise apps |
211
+ | Rust | go-service | Performance-sensitive backend work |
212
+ | Ruby | laravel-api | Mature product services and backend workflows |
213
+ | React Native | mobile-app | Cross-platform mobile applications |
214
+ | Flutter | mobile-app | Cross-platform mobile applications |
215
+
216
+ ### Benchmark Comparison (Current State)
217
+
218
+ | Capability | antigravity-awesome-skills | awesome-copilot | MiniMax-AI/skills | Agentic-Senior-Core |
219
+ |------------|----------------------------|-----------------|-------------------|---------------------|
220
+ | Skill organization | Large curated library | Resource catalog + governance docs | Domain-focused packs | Unified folder-based domain packs with tier routing |
221
+ | Architecture guidance | Strong practical patterns | Strong SoC and layered architecture | Strong applied templates | Consolidated architecture + domain enforcement |
222
+ | CLI governance | Limited | Moderate | Moderate | Init/upgrade/output governance with dry-run and structured reports |
223
+ | Distribution operations | Basic | Moderate | Strong release checklists | Publish, rollback, compatibility gates plus benchmark/sbom flows |
224
+ | Review quality | Pattern-oriented | Checklist-oriented | Gate-oriented | Planning/security/benchmark review model with CI integration |
225
+
226
+ ### Option 4: Clone and Play
227
+ Want to poke around under the hood? Just clone the repo and `npx @ryuenn3123/agentic-senior-core init` locally. No runtime dependencies needed — everything uses native Node.js!
228
+
229
+ ### Upgrade Existing Governance Packs (V1.x to V2.x)
230
+
231
+ Yes, the upgrade flow still works. Use `--dry-run` first to preview changes, then apply with `--yes` when you are ready.
232
+
233
+ Preview migration changes safely:
234
+
235
+ ```bash
236
+ npx @ryuenn3123/agentic-senior-core upgrade --dry-run
237
+ ```
238
+
239
+ Apply migration updates:
240
+
241
+ ```bash
242
+ npx @ryuenn3123/agentic-senior-core upgrade --yes
243
+ ```
244
+
245
+ ---
246
+
247
+ ## Further Reading
248
+
249
+ Our documentation has shifted into dedicated tracks to keep this README light:
250
+ - **[FAQ / Concepts](docs/faq.md)**: Unfamiliar with Stacks, Blueprints, or Guardrails? Stalled on basic logic? Start here.
251
+ - **[Deep Dive / Internals](docs/deep-dive.md)**: Explore the dynamic compiler, severity profiles, MCP integration, and granular LLM overrides here.
252
+ - **[V2 Upgrade Playbook](docs/v2-upgrade-playbook.md)**: Benchmark-driven upgrade execution from antigravity-awesome-skills, awesome-copilot, and MiniMax skills.
253
+ - **[Skill Platform](.agent-context/skills/README.md)**: Unified skill packs for frontend, backend, fullstack, CLI, distribution, and review quality with `advance` as the default tier.
254
+ The skill platform is now folder-based, so each domain has its own README and topic docs like a curated skills library.
255
+
256
+ ---
257
+
258
+ ## Core Capabilities
259
+
260
+ - **Delivery Engine (CLI):** Interactive setup via GitHub source, bootstrap scripts, or `npx` after publish. Supported by a robust transactional installer with rollback protection.
261
+ - **Verified Skill Marketplace:** Distribute and validate plugins securely with automated 4-dimension Trust Scoring and Evidence Bundles constraint validation.
262
+ - **Dynamic Context Compiler:** Merges universal rules + selected stack + selected blueprint + optional CI guardrails into one dense, indexed rule file.
263
+ - **Codebase Intelligence:** `.agent-context/state/` gives architecture/dependency boundaries so the agent understands high-risk areas.
264
+ - **Override System:** `.agent-override.md` allows controlled enterprise exceptions without forking core rules.
265
+ - **Automated Guardrails:** CI blueprints include LLM-as-a-Judge flow using `pr-checklist.md`.
266
+ - **Pre-Publish Safety:** Built-in forbidden content checks detect hardcoded secrets and stray debugger artifacts before hitting the NPM registry.
267
+ - **Machine-Readable CI Output:** LLM Judge emits `JSON_REPORT` payloads and writes `.agent-context/state/llm-judge-report.json` for PR/MR annotation tooling.
268
+ - **MCP Self-Healing Loop:** `mcp.json` defines diagnostics + fix proposal workflow when lint/CI fails.
269
+
270
+ ---
271
+
272
+ ## Repository Structure
273
+
274
+ ```text
275
+ .
276
+ ├── .cursorrules # Dynamic compiled governance entry point
277
+ ├── .windsurfrules # Dynamic compiled governance entry point
278
+ ├── .agent-override.md # Team-specific exceptions (scoped + expiry)
279
+ ├── mcp.json # MCP self-healing workflow config
280
+ ├── AGENTS.md # Universal agent discovery
281
+ ├── .github/copilot-instructions.md # GitHub Copilot entry point
282
+ ├── .gemini/instructions.md # Antigravity / Gemini entry point
283
+ ├── bin/
284
+ └── agentic-senior-core.js # Interactive CLI (Delivery Engine)
285
+ ├── .agent-context/
286
+ ├── rules/ # Universal engineering laws
287
+ │ ├── stacks/ # Language-specific profiles
288
+ │ ├── blueprints/ # Scaffolding and pipeline templates
289
+ │ ├── review-checklists/ # AI self-audit guides
290
+ ├── prompts/ # Ready-to-use prompts
291
+ │ └── state/ # Architecture and dependency state maps
292
+ ├── architecture-map.md
293
+ └── dependency-map.md
294
+ ├── scripts/
295
+ │ ├── validate.mjs # Repository validator
296
+ ├── llm-judge.mjs # LLM-as-a-Judge CI gate
297
+ ├── init-project.sh # GitHub bootstrap script (Linux/macOS)
298
+ │ └── init-project.ps1 # GitHub bootstrap script (Windows)
299
+ ├── docs/
300
+ │ ├── faq.md
301
+ │ └── deep-dive.md
302
+ ├── tests/
303
+ │ ├── cli-smoke.test.mjs
304
+ │ └── llm-judge.test.mjs
305
+ ├── package.json
306
+ ├── CONTRIBUTING.md
307
+ ├── LICENSE
308
+ └── README.md
309
+ ```
310
+
311
+ ---
312
+
313
+ ## Validation
314
+
315
+ Ensure everything is running smoothly before merging rules patches:
316
+
317
+ ```bash
318
+ npm run validate
319
+ ```
320
+
321
+ Track stack-detection KPI trends:
322
+
323
+ ```bash
324
+ npm run benchmark:detection
325
+ ```
326
+
327
+ Generate governance observability artifacts:
328
+
329
+ ```bash
330
+ npm run report:quality-trend
331
+ npm run report:governance-weekly
332
+ ```
333
+
334
+ ---
335
+
336
+ ## Roadmap
337
+
338
+ ### Completed Milestones
339
+ - V1.0 to V1.3: Core rules, multi-language stacks, advanced architecture patterns, and infrastructure blueprints.
340
+ - V1.4: Dynamic Governance Engine (interactive CLI, context compiler, state maps, override system, guardrails, MCP self-healing).
341
+ - V1.5: Newbie-First Experience (Node-first runtime, zero-install onboarding path, smart auto-detection, profile presets, LLM severity thresholds, docs split, smoke tests).
342
+
343
+ ### V1.6 (Released) Enterprise Reliability and Team Workflow
344
+ - Team profile packs and safer override governance shipped.
345
+ - CI annotation standardization and stronger detection transparency shipped.
346
+ - Upgrade assistant and benchmark coverage shipped.
347
+
348
+ ### V1.7 (Released) — Frontend Product Experience Governance Pack
349
+ - Frontend usability checklist, execution playbook, and issue template shipped.
350
+ - Frontend usability audit script and CI artifact workflow shipped.
351
+
352
+ ### V1.8 (Released) — Enterprise Release Operations and Compliance
353
+ - Release-gate automation shipped with machine-readable artifact output.
354
+ - CycloneDX SBOM generation and compliance artifact workflow shipped.
355
+ - Operations playbook and release-operations checklist shipped.
356
+
357
+ ### Current Forward Plan
358
+ - V2.0: Skill marketplace trust tiers, transactional installs, rollback safety, and launch-menu onboarding.
359
+ - V2.5: Cross-model benchmark harness and anti-regression quality gates.
360
+ - V3.0: Enterprise governance cloud, policy drift detection, and org-level override registry.
361
+
362
+ Detailed timeline and success metrics: [docs/roadmap.md](docs/roadmap.md)
363
+
364
+ ---
365
+
366
+ ## Contributing
367
+
368
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for contribution standards and workflow.
369
+
370
+ ---
371
+
372
+ ## License
373
+
374
+ MIT — Use freely, enforce strictly.
375
+
376
+ ---
377
+
378
+ <div align="center">
379
+
380
+ **Stop letting AI write junior code.**
381
+ **Give it the rules of a Staff Engineer.**
382
+
383
+ </div>