@ryuenn3123/agentic-senior-core 3.0.47 → 3.0.49
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-context/prompts/bootstrap-design.md +8 -10
- package/.agent-context/prompts/init-project.md +2 -2
- package/.agent-context/rules/architecture.md +2 -2
- package/.agent-context/rules/frontend-architecture.md +9 -13
- package/.agent-context/state/architecture-map.md +3 -3
- package/.agent-context/state/dependency-map.md +2 -2
- package/AGENTS.md +170 -35
- package/CLAUDE.md +1 -44
- package/CONTRIBUTING.md +2 -3
- package/GEMINI.md +1 -44
- package/README.md +24 -22
- package/lib/cli/commands/init.mjs +10 -28
- package/lib/cli/commands/optimize.mjs +2 -48
- package/lib/cli/commands/upgrade.mjs +9 -51
- package/lib/cli/compiler.mjs +8 -93
- package/lib/cli/constants.mjs +1 -9
- package/lib/cli/detector.mjs +0 -1
- package/lib/cli/init-options.mjs +1 -1
- package/lib/cli/project-scaffolder/design-contract/validation.mjs +4 -0
- package/lib/cli/project-scaffolder/design-contract.mjs +4 -0
- package/lib/cli/project-scaffolder/prompt-builders.mjs +5 -1
- package/lib/cli/utils/filesystem.mjs +2 -0
- package/lib/cli/utils/managed-surface.mjs +45 -2
- package/lib/cli/utils.mjs +19 -4
- package/package.json +1 -10
- package/scripts/bump-version.mjs +1 -16
- package/scripts/docs-quality-drift-report.mjs +0 -6
- package/scripts/frontend-usability-audit.mjs +6 -2
- package/scripts/governance-weekly-report.mjs +2 -2
- package/scripts/single-source-lazy-loading-audit.mjs +13 -126
- package/scripts/sync-thin-adapters.mjs +13 -121
- package/scripts/validate/config.mjs +14 -25
- package/scripts/validate/coverage-checks.mjs +9 -76
- package/scripts/validate.mjs +12 -97
- package/.agent-override.md +0 -36
- package/.agents/workflows/init-project.md +0 -12
- package/.agents/workflows/refactor.md +0 -12
- package/.agents/workflows/review-code.md +0 -11
- package/.cursor/mcp.json +0 -10
- package/.cursor/rules/agentic-senior-core.mdc +0 -49
- package/.cursorrules +0 -26
- package/.gemini/instructions.md +0 -44
- package/.github/copilot-instructions.md +0 -44
- package/.github/instructions/agentic-senior-core.instructions.md +0 -48
- package/.github/workflows/benchmark-detection.yml +0 -45
- package/.github/workflows/benchmark-intelligence.yml +0 -50
- package/.github/workflows/docs-quality-drift-report.yml +0 -37
- package/.github/workflows/frontend-usability-gate.yml +0 -36
- package/.github/workflows/governance-weekly-report.yml +0 -43
- package/.github/workflows/publish.yml +0 -32
- package/.github/workflows/release-gate.yml +0 -32
- package/.github/workflows/sbom-compliance.yml +0 -32
- package/.instructions.md +0 -187
- package/.windsurf/rules/agentic-senior-core.md +0 -44
- package/.windsurfrules +0 -26
|
@@ -56,9 +56,7 @@ If the expressive path needs a new motion, 3D, canvas, scroll, or interaction li
|
|
|
56
56
|
|
|
57
57
|
Only downshift ambition after naming the concrete blocker: product fit, content density, measured performance budget, accessibility, device support, package conflict, security risk, or missing runtime capability. A new dependency, package count, or vague performance concern is not a blocker by itself. Pair every downshift with a replacement interaction quality that still changes composition, hierarchy, feedback, or memorability.
|
|
58
58
|
## Design Flexibility Layer
|
|
59
|
-
`docs/design-intent.json` must separate locked outcomes from flexible expression. The machine contract keeps review invariants stable; it must not freeze exact aesthetic implementation unless repo evidence, accessibility validation, implementation constraints, or explicit user approval locks it.
|
|
60
|
-
|
|
61
|
-
Record `designFlexibilityPolicy`: lock user goals, runtime constraints, accessibility, production readiness, forbidden patterns, and approved continuity; keep exact palette primitives, font families, radius/shadow values, component-kit theme mapping, signature move implementation, literal anchor artifacts, and spatial metaphors flexible until validated or approved. Semantic roles are required; exact primitives are not automatically locked. Required experience outcomes are separate from candidate implementation moves. Libraries supply behavior, accessibility, primitives, and delivery speed; the project supplies final composition, theme, morphology, and visual language.
|
|
59
|
+
`docs/design-intent.json` must separate locked outcomes from flexible expression. The machine contract keeps review invariants stable; it must not freeze exact aesthetic implementation unless repo evidence, accessibility validation, implementation constraints, or explicit user approval locks it. Record `designFlexibilityPolicy`: lock user goals, runtime constraints, accessibility, production readiness, forbidden patterns, and approved continuity; keep exact palette primitives, font families, radius/shadow values, component-kit theme mapping, signature move implementation, literal anchor artifacts, and spatial metaphors flexible until validated or approved. Semantic roles are required; exact primitives are not automatically locked.
|
|
62
60
|
## External Inspiration Boundary
|
|
63
61
|
Using outside websites, benchmark apps, galleries, or component examples is useful for constraint discovery, interaction mechanics, and implementation options, but never as a style source to imitate. Extract why a pattern works, then translate it into a current-project rule. Do not copy layout rhythm, palette, component skin, visual metaphor, or brand posture from a reference unless the user explicitly approves that continuity and it passes product fit.
|
|
64
62
|
|
|
@@ -83,16 +81,16 @@ If rich motion or spatial UI is omitted, record the product, content-density, pe
|
|
|
83
81
|
If 3D or canvas is used, record product role, interaction model, fallback path, runtime/library choice, loading state, keyboard path, and reduced-motion behavior.
|
|
84
82
|
|
|
85
83
|
## Token Derivation Audit
|
|
86
|
-
Before implementation, `docs/design-intent.json` must include top-level `derivedTokenLogic`:
|
|
87
|
-
- `anchorReference`
|
|
88
|
-
- `colorDerivationSource`
|
|
89
|
-
- `spacingDerivationSource`
|
|
90
|
-
- `typographyDerivationSource`
|
|
91
|
-
- `motionDerivationSource`
|
|
92
|
-
- `validationRule`
|
|
84
|
+
Before implementation, `docs/design-intent.json` must include top-level `derivedTokenLogic`: `anchorReference`, `colorDerivationSource`, `spacingDerivationSource`, `typographyDerivationSource`, `motionDerivationSource`, `colorSpace`, `spatialBaseUnit`, `typeScaleMethod`, `motionBudget`, and `validationRule`.
|
|
93
85
|
|
|
94
86
|
Every semantic token role must trace to `anchorReference`. Exact primitive values stay flexible until repo evidence, accessibility validation, implementation constraints, or explicit user approval locks them. If the rationale is "looks good", "common practice", "modern default", or "framework default", derive the token again before UI code.
|
|
95
87
|
|
|
88
|
+
## Implementation Craft Layer
|
|
89
|
+
Before accepting the design contract, record explicit CSS craft decisions:
|
|
90
|
+
- Color/typography: prefer OKLCH tokens and tinted neutrals for new CSS when supported, preserve existing token formats, name color commitment level, and prefer fluid `clamp()` scales with explicit role contrast, `text-wrap: balance`, and numeric typography decisions.
|
|
91
|
+
- Spatial/motion: name `spatialBaseUnit`, major multiples, optical exceptions, and `motionBudget`; prefer transform/opacity choreography, explicit easing, bounded stagger, and reduced-motion behavior.
|
|
92
|
+
- Implementation anti-attractor: list three default CSS reflexes this task might trigger, reject the most likely one, and choose one distinctive implementation move tied to the product.
|
|
93
|
+
|
|
96
94
|
## Library Research Protocol
|
|
97
95
|
If web search is available:
|
|
98
96
|
- Verify each new UI-related library against current official docs.
|
|
@@ -40,7 +40,7 @@ The agent must:
|
|
|
40
40
|
If the user specifies a framework, runtime, or architecture constraint, the agent must:
|
|
41
41
|
1. Read [AGENTS.md](../../AGENTS.md) for role context.
|
|
42
42
|
2. Resolve only the rules required by the explicit constraint and scope. Do not read unrelated backend, frontend, or DevOps rules by habit.
|
|
43
|
-
3. Reference [.agent-context/state/onboarding-report.json](../state/onboarding-report.json), [.
|
|
43
|
+
3. Reference [.agent-context/state/onboarding-report.json](../state/onboarding-report.json), [AGENTS.md](../../AGENTS.md), and the relevant `.agent-context/` files for runtime evidence and any explicit constraints already applied to this project.
|
|
44
44
|
4. Scaffold the initial project structure only after runtime and architecture decisions are explicit:
|
|
45
45
|
- Create only the directories and files justified by the approved structure.
|
|
46
46
|
- Set up configuration, validation, error handling, observability, health checks, and persistence only when they fit the approved runtime and project scope.
|
|
@@ -53,7 +53,7 @@ If the user specifies a framework, runtime, or architecture constraint, the agen
|
|
|
53
53
|
|
|
54
54
|
## Runtime and Architecture Reference
|
|
55
55
|
|
|
56
|
-
See [.agent-context/state/onboarding-report.json](../state/onboarding-report.json), [.
|
|
56
|
+
See [.agent-context/state/onboarding-report.json](../state/onboarding-report.json), [AGENTS.md](../../AGENTS.md), and the relevant `.agent-context/` files for the latest shipped runtime evidence, explicit constraints, and agent-decision status.
|
|
57
57
|
|
|
58
58
|
## UI/UX Bootstrap
|
|
59
59
|
|
|
@@ -78,8 +78,8 @@ Use `README.md` for human orientation, then use `docs/doc-index.md` to choose th
|
|
|
78
78
|
|
|
79
79
|
## Single Source of Truth and Lazy Rule Loading
|
|
80
80
|
|
|
81
|
-
- Canonical rule source is .
|
|
82
|
-
-
|
|
81
|
+
- Canonical rule source is AGENTS.md.
|
|
82
|
+
- Native adapter entry files stay thin and must import the canonical source.
|
|
83
83
|
- Load global domain rules lazily based on touched scope.
|
|
84
84
|
- Do not create or load stack-specific governance adapters as the baseline.
|
|
85
85
|
- Runtime or framework evidence can clarify implementation details, but it must not replace the global architecture, security, data, API, error, event, and testing boundaries.
|
|
@@ -19,19 +19,7 @@ Use this rule for UI, UX, page, screen, component, layout, landing, dashboard, f
|
|
|
19
19
|
|
|
20
20
|
## Required Design Contract
|
|
21
21
|
|
|
22
|
-
Before UI code, create or refine `docs/DESIGN.md` and `docs/design-intent.json`.
|
|
23
|
-
|
|
24
|
-
The contract must record:
|
|
25
|
-
- `motionPaletteDecision`
|
|
26
|
-
- `designFlexibilityPolicy`
|
|
27
|
-
- `conceptualAnchor`
|
|
28
|
-
- `derivedTokenLogic`
|
|
29
|
-
- `aiSafeUiAudit`
|
|
30
|
-
- `designExecutionPolicy`
|
|
31
|
-
- `designExecutionHandoff`
|
|
32
|
-
- `reviewRubric`
|
|
33
|
-
- `contextHygiene`
|
|
34
|
-
- `libraryResearchStatus` and `libraryDecisions[]`
|
|
22
|
+
Before UI code, create or refine `docs/DESIGN.md` and `docs/design-intent.json`. The contract must record `motionPaletteDecision`, `designFlexibilityPolicy`, `conceptualAnchor`, `derivedTokenLogic`, `aiSafeUiAudit`, `designExecutionPolicy`, `designExecutionHandoff`, `reviewRubric`, `contextHygiene`, `libraryResearchStatus`, and `libraryDecisions[]`.
|
|
35
23
|
|
|
36
24
|
## Anti-Generic UI Gate
|
|
37
25
|
|
|
@@ -71,6 +59,7 @@ If the user gives no current-task visual research or reference:
|
|
|
71
59
|
- Treat motion, 3D, WebGL, canvas, scroll choreography, and animation libraries as first-class options.
|
|
72
60
|
- Omit rich motion or spatial UI only after naming the product-fit reason and the replacement interaction quality.
|
|
73
61
|
- For new screens or broad redesigns, research the expressive implementation path instead of defaulting to static native CSS. Use native or already-installed tools only when they can still deliver the chosen ambition, or when a concrete blocker is documented. Do not downshift because adding a package feels inconvenient; downshift only for a concrete product-fit, accessibility, security, compatibility, device, maintenance, or measured performance reason.
|
|
62
|
+
- Prefer micro-interactions in 150-300ms, layout transitions in 300-500ms, transform/opacity for high-frequency motion, explicit easing, bounded stagger, and reduced-motion alternatives unless evidence changes the budget.
|
|
74
63
|
- Keep reduced-motion, keyboard, loading, performance, mobile, and non-3D fallbacks explicit.
|
|
75
64
|
- Use component kits or headless primitives for behavior and accessibility when they fit. Replace library-default visual language with project-specific composition, tokens, motion, state treatment, and morphology.
|
|
76
65
|
- Keep design-intent flexible: lock user goals, accessibility, production readiness, forbidden patterns, and approved continuity; keep exact palette primitives, font families, radius/shadow values, component skins, candidate signature moves, and external website inspiration flexible until evidence or approval locks them. Convert references into product-fit rules; do not copy layout, palette, component skin, brand posture, or visual metaphor.
|
|
@@ -92,6 +81,7 @@ Responsive quality is not scale-only.
|
|
|
92
81
|
- Tablet must regroup surfaces instead of shrinking desktop.
|
|
93
82
|
- Desktop may expose more context but must not become interchangeable admin chrome.
|
|
94
83
|
- At least one major surface must change position, grouping, priority, or disclosure strategy between mobile and desktop.
|
|
84
|
+
- Prefer container queries, dynamic viewport units, support-checked selectors, subgrid, popover, or disclosure primitives when they simplify recomposition and fallbacks are clear.
|
|
95
85
|
|
|
96
86
|
## Accessibility
|
|
97
87
|
|
|
@@ -100,6 +90,12 @@ Responsive quality is not scale-only.
|
|
|
100
90
|
- Hard checks include focus visibility, focus appearance, target size, keyboard access, accessible authentication, color-only meaning, and dynamic status/state access.
|
|
101
91
|
- Fix accessibility issues without flattening the UI into generic safe chrome unless no expressive safe option remains.
|
|
102
92
|
|
|
93
|
+
## CSS Production Hardening
|
|
94
|
+
|
|
95
|
+
- Plan overflow, wrapping, truncation, empty, loading, error, and extreme-content behavior before declaring a layout complete.
|
|
96
|
+
- Prefer `min()`, `max()`, `clamp()`, stable aspect ratios, container-relative sizing, OKLCH, and tinted neutrals for new tokens when supported; preserve existing design-system tokens.
|
|
97
|
+
- Treat recursive card nesting, uniform radius everywhere, shadow on every surface, arbitrary spacing, gray text on saturated color, and library-default skins as drift signals requiring product rationale.
|
|
98
|
+
|
|
103
99
|
## Implementation Boundaries
|
|
104
100
|
|
|
105
101
|
- Follow the shipped project stack and current repo patterns.
|
|
@@ -6,10 +6,10 @@ Use this file as repo-local agent context. It records the current governance arc
|
|
|
6
6
|
|
|
7
7
|
| Surface | Criticality | Change Policy | Required Checks |
|
|
8
8
|
| --- | --- | --- | --- |
|
|
9
|
-
|
|
|
9
|
+
| `AGENTS.md`, `CLAUDE.md`, `GEMINI.md` | critical | Keep `AGENTS.md` canonical and native bridges minimal | `npm run sync:adapters`, `npm run check:adapters`, `npm run validate` |
|
|
10
10
|
| `.agent-context/rules/**`, `.agent-context/prompts/**`, `.agent-context/review-checklists/**` | critical | Keep rules imperative, compact, scope-resolved, and non-duplicative | adapter sync, validation, targeted smoke tests |
|
|
11
11
|
| `.agent-context/state/**` | high | Track only seed/config and current operational state; keep generated reports local-only | `npm pack --dry-run`, state README review |
|
|
12
|
-
| `
|
|
12
|
+
| `scripts/sync-thin-adapters.mjs` | critical | Preserve minimal import bridge compatibility for Claude and Gemini | adapter tests, smoke tests, validation |
|
|
13
13
|
| `lib/cli/commands/init.mjs`, `lib/cli/commands/upgrade.mjs` | high | Preserve fresh-project and existing-project behavior without silent stack/style decisions | CLI smoke tests, onboarding report checks |
|
|
14
14
|
| `lib/cli/project-scaffolder/**` | high | Preserve docs-first and design-contract behavior without hardcoded house style | design/detection smoke tests, validation |
|
|
15
15
|
| `scripts/validate*.mjs`, `scripts/validate/**` | high | Keep validation mechanical and aligned with current shipped surfaces | `node ./scripts/validate.mjs`, targeted script checks |
|
|
@@ -35,6 +35,6 @@ Use this file as repo-local agent context. It records the current governance arc
|
|
|
35
35
|
|
|
36
36
|
1. Load the smallest relevant rule set.
|
|
37
37
|
2. Use README only for public and developer overview, setup, usage, and user-facing context when governance files conflict.
|
|
38
|
-
3. Preserve
|
|
38
|
+
3. Preserve native import bridge sync before release.
|
|
39
39
|
4. Treat stale generated state, dual lockfiles, and obsolete V2/V3 transition files as cleanup findings.
|
|
40
40
|
5. Before claiming done, run the relevant validation gate and report any skipped checks.
|
|
@@ -21,7 +21,7 @@ Use this map to keep Agentic-Senior-Core's CLI, governance, and validation layer
|
|
|
21
21
|
| `lib/cli/commands/upgrade.mjs` | detector, compiler, scaffolder seeds, backup/rollback, shared setup helpers | duplicated setup-policy helpers, silent stack migration |
|
|
22
22
|
| `lib/cli/project-scaffolder.mjs` | stable public scaffolder exports | private validation helpers that do not need public API exposure |
|
|
23
23
|
| `lib/cli/project-scaffolder/design-contract.mjs` | validation submodule, constants, utilities | hardcoded final palettes, fixed layouts, external design memory |
|
|
24
|
-
| `scripts/sync-thin-adapters.mjs` |
|
|
24
|
+
| `scripts/sync-thin-adapters.mjs` | `AGENTS.md` and native import bridge targets | hand-maintained duplicate policy blocks |
|
|
25
25
|
| `scripts/validate*.mjs` | config, coverage checks, file evidence | stale V2 skill-marketplace artifacts |
|
|
26
26
|
| `.agent-context/prompts/bootstrap-design.md` | current repo evidence and frontend rule | prior-chat visuals, unrelated screenshots, template style presets |
|
|
27
27
|
|
|
@@ -30,7 +30,7 @@ Use this map to keep Agentic-Senior-Core's CLI, governance, and validation layer
|
|
|
30
30
|
- Reject `commands -> project-scaffolder -> commands`.
|
|
31
31
|
- Reject `compiler -> commands`.
|
|
32
32
|
- Reject `scripts/validate -> tests`.
|
|
33
|
-
- Reject generated adapters becoming inputs for
|
|
33
|
+
- Reject generated adapters becoming inputs for `AGENTS.md` or `.agent-context/`.
|
|
34
34
|
- Move repeated command setup policy into shared helper modules instead of copying local functions.
|
|
35
35
|
|
|
36
36
|
## Package Hygiene
|
package/AGENTS.md
CHANGED
|
@@ -1,44 +1,179 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Agentic-Senior-Core: Unified AI Agent Instructions
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
Adapter Source: .instructions.md
|
|
5
|
-
Canonical Snapshot SHA256: 728c7ecaa49ea69a3e9b03c1c88d25f310a1827f2cebb72de102b5ae5005ff0e
|
|
3
|
+
Canonical project instructions. Resolve the smallest relevant layer set for the current request.
|
|
6
4
|
|
|
5
|
+
## Role
|
|
6
|
+
Act as a Principal Engineer. Ship maintainable, validated, production-ready work. Use clear plain language in formal artifacts. Do not use emoji.
|
|
7
|
+
|
|
8
|
+
## Authority
|
|
7
9
|
This repository is governed by a strict instruction contract.
|
|
8
|
-
|
|
9
|
-
Use .agent-context
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
- For UI, UX, layout, screen, tailwind, frontend, or redesign requests, load [bootstrap-design.md](.agent-context/prompts/bootstrap-design.md) and [frontend-architecture.md](.agent-context/rules/frontend-architecture.md) before code edits.
|
|
18
|
-
- For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
|
|
19
|
-
- For UI scope, create or refine `docs/DESIGN.md` and `docs/design-intent.json` before UI implementation.
|
|
20
|
-
- For documentation-first requests, create or refine required project docs in English by default and do not write application, firmware, or UI code until the user asks or approves.
|
|
21
|
-
- Create or refine root README.md as the public and developer entrypoint before implementation.
|
|
22
|
-
- For backend, API, data, auth, error, event, queue, worker, or distributed-system requests, load only relevant global rules from .agent-context/rules/ ([link](.agent-context/rules)).
|
|
23
|
-
- For ecosystem, framework, dependency, or Docker claims, perform live web research.
|
|
24
|
-
- Resolve runtime choices from project evidence and live official documentation; resolve structural planning from constraints and architecture boundaries.
|
|
25
|
-
|
|
26
|
-
## Mandatory Bootstrap Chain
|
|
27
|
-
|
|
28
|
-
1. Load [.instructions.md](.instructions.md).
|
|
29
|
-
2. Load `.agent-instructions.md` when present.
|
|
30
|
-
3. Load only relevant files from .agent-context/rules/ ([link](.agent-context/rules)).
|
|
31
|
-
4. Apply matching prompts from .agent-context/prompts/ ([link](.agent-context/prompts)).
|
|
32
|
-
5. Enforce .agent-context/review-checklists/ ([link](.agent-context/review-checklists/pr-checklist.md)).
|
|
33
|
-
6. Use .agent-context/state/ ([link](.agent-context/state)) and .agent-context/policies/ ([link](.agent-context/policies)) only when relevant.
|
|
34
|
-
7. Use project docs and live evidence for runtime, dependency, and architecture claims.
|
|
10
|
+
|
|
11
|
+
Use `AGENTS.md` as the canonical baseline. Use `.agent-context/` as technical authority for rules, prompts, checklists, state, and policies. Use `README.md` only for public and developer overview, setup, usage, and user-facing context when stricter governance files conflict.
|
|
12
|
+
|
|
13
|
+
Write instructions as imperative gates:
|
|
14
|
+
- Use direct commands.
|
|
15
|
+
- Prefer short mechanical checks over descriptive prose.
|
|
16
|
+
- Keep root adapters thin.
|
|
17
|
+
- Move detailed policy into `.agent-context/`.
|
|
18
|
+
- Add validation when a rule can drift.
|
|
35
19
|
|
|
36
20
|
## Bootstrap Receipt
|
|
21
|
+
For non-trivial coding, review, planning, or governance work, emit a concise Bootstrap Receipt before implementation output or file edits:
|
|
22
|
+
- `loaded_files`: files actually read
|
|
23
|
+
- `selected_rules`: files selected for this scope and why
|
|
24
|
+
- `skipped_rules`: out-of-scope categories left unloaded
|
|
25
|
+
- `unreachable_files`: required files that could not be read
|
|
26
|
+
- `validation_plan`: expected checks before completion
|
|
27
|
+
|
|
28
|
+
Keep it short. Do not load every rule just to fill it out.
|
|
29
|
+
|
|
30
|
+
## Command Economy
|
|
31
|
+
Avoid repeated command output. Do not rerun broad inspections unless edits changed the result. Prefer targeted reads, targeted searches, concise diffs, and final validation gates.
|
|
32
|
+
|
|
33
|
+
## Layer Index
|
|
34
|
+
### Layer 1: Rules (15 Files) [SCOPE-RESOLVED]
|
|
35
|
+
Location: `.agent-context/rules/`.
|
|
36
|
+
|
|
37
|
+
Load only relevant rule files. Do not read the entire rule directory by default.
|
|
38
|
+
|
|
39
|
+
Available rules: `naming-conv.md`, `architecture.md`, `security.md`, `performance.md`, `error-handling.md`, `testing.md`, `git-workflow.md`, `efficiency-vs-hype.md`, `api-docs.md`, `microservices.md`, `event-driven.md`, `database-design.md`, `realtime.md`, `frontend-architecture.md`, `docker-runtime.md`.
|
|
40
|
+
|
|
41
|
+
For Docker or Compose work, load `docker-runtime.md` and verify the latest official Docker docs before authoring container assets. Also perform live web research for Docker and framework/package setup claims. For framework or package setup work, use the latest stable compatible dependency set and official setup flow unless a documented compatibility constraint blocks it. Prefer official framework scaffolders when they create the supported project shape; manual file assembly needs a repo, prototype, learning, or architecture reason. New dependencies are allowed when they improve efficiency, delivery time, correctness, accessibility, UX, or maintainability. Do not treat dependency avoidance or vague performance fear as a default reason to skip a modern maintained library.
|
|
42
|
+
|
|
43
|
+
Backend/API routing:
|
|
44
|
+
- Data/schema/persistence: `architecture.md`, `database-design.md`, `performance.md`, `testing.md`.
|
|
45
|
+
- Endpoint/API/error contracts: `architecture.md`, `api-docs.md`, `error-handling.md`, `security.md`, `testing.md`.
|
|
46
|
+
- Auth/secrets/uploads/permissions: `security.md`, `error-handling.md`, `testing.md`.
|
|
47
|
+
- Queue/worker/cron/events/retry: `event-driven.md`, `database-design.md`, `error-handling.md`, `performance.md`, `testing.md`.
|
|
48
|
+
- Multi-service/distributed boundaries: `microservices.md`, `event-driven.md`, `database-design.md`, `api-docs.md`, `architecture.md`.
|
|
49
|
+
|
|
50
|
+
Use the union once when scopes overlap. Do not create framework-specific governance adapters.
|
|
51
|
+
|
|
52
|
+
### Layer 2: Runtime Decision Signals
|
|
53
|
+
|
|
54
|
+
Runtime Decision Signals come from project context, repo evidence, and live research. Runtime signals are evidence gates, not style cues or popularity rankings.
|
|
55
|
+
|
|
56
|
+
For fresh projects, recommend runtime/framework from the brief, constraints, and live official docs before coding. For existing projects, treat detected markers as evidence only. Ignore pattern frequency, external rankings, and remembered defaults. Do not default web projects to Next.js, Tailwind-only styling, shadcn/ui, Vite, or any familiar web stack by habit, and do not avoid them because of this guard when they are the strongest project fit.
|
|
57
|
+
|
|
58
|
+
### Layer 3: Structural Planning Signals
|
|
59
|
+
|
|
60
|
+
Structural Planning Signals use dynamic structural planning from repo context, docs, runtime constraints, and live research. Structural planning signals are not a hard whitelist.
|
|
61
|
+
|
|
62
|
+
For new projects or modules, extract constraints, boundaries, and required docs first. Do not silently choose frameworks or architecture from offline heuristics. If runtime or architecture is unresolved, produce a short recommendation from evidence and live official documentation before coding. Compare at least one plausible alternative when the strongest-looking option is a familiar web default and the user did not explicitly choose it.
|
|
63
|
+
|
|
64
|
+
### Layer 4: Execution Contracts
|
|
65
|
+
|
|
66
|
+
Execution Contracts are dynamic execution contracts from prompts, review checklists, and policy thresholds. Resolve the active contract, then enforce mandatory checks before declaring completion.
|
|
67
|
+
|
|
68
|
+
### Layer 5: Prompts
|
|
69
|
+
|
|
70
|
+
Location: `.agent-context/prompts/`.
|
|
71
|
+
|
|
72
|
+
Load the matching prompt only:
|
|
73
|
+
- `init-project.md` -> create, build, new project, scaffold
|
|
74
|
+
- `refactor.md` -> refactor, improve, clean up, fix
|
|
75
|
+
- `review-code.md` -> review, audit, check, analyze
|
|
76
|
+
- `bootstrap-design.md` -> ui, ux, layout, screen, tailwind, frontend, redesign
|
|
77
|
+
|
|
78
|
+
For UI-only work, load `bootstrap-design.md` and `frontend-architecture.md` first; do not eagerly load unrelated backend-only rules unless the request crosses that boundary. The valid style context is current repo evidence, current brief, and current project docs. External references, prior-chat memory, unrelated-project visuals, and remembered screenshots are tainted unless the user makes them current-task constraints. Treat WCAG 2.2 AA as the hard compliance floor and APCA as advisory perceptual tuning only. Do not require screenshot capture as a baseline dependency.
|
|
79
|
+
|
|
80
|
+
### Layer 6: Governance Modes
|
|
81
|
+
|
|
82
|
+
Governance Modes use dynamic governance context from state files, policies, and repo norms. Apply matching defaults only when relevant.
|
|
83
|
+
|
|
84
|
+
### Layer 7: State and Benchmarks
|
|
85
|
+
|
|
86
|
+
Use `.agent-context/state/` only when the task needs risk zones, dependency boundaries, benchmarks, or continuity metadata. For initialized projects, `.agent-context/state/onboarding-report.json` records selected profile, runtime evidence, architecture decision status, token optimization, and memory continuity.
|
|
87
|
+
|
|
88
|
+
### Layer 8: Policies and Thresholds
|
|
89
|
+
|
|
90
|
+
Use `.agent-context/policies/` for quality gates, release thresholds, and audit posture.
|
|
91
|
+
|
|
92
|
+
### Layer 9: Project Context
|
|
93
|
+
|
|
94
|
+
Use root `README.md` as the public and developer entrypoint for every fresh or existing project. Use `docs/doc-index.md` as the compact routing map when `docs/` exists. Use `docs/` when present: `project-brief.md`, `architecture-decision-record.md`, `database-schema.md`, `api-contract.md`, `flow-overview.md`, `DESIGN.md`, `design-intent.json`.
|
|
95
|
+
|
|
96
|
+
## Mandatory Triggers
|
|
97
|
+
|
|
98
|
+
### 1. Documentation-First Mode
|
|
99
|
+
|
|
100
|
+
Trigger: docs, documentation, dokumen, `docs/*`, architecture docs, flow docs, API docs, or "lengkapkan docs".
|
|
101
|
+
|
|
102
|
+
1. Load `architecture.md`, `api-docs.md`, and only additional rules required by scope.
|
|
103
|
+
2. Create or refine required docs first: root `README.md` for every fresh or existing project; `docs/doc-index.md` whenever `docs/` exists; `docs/project-brief.md`; `docs/architecture-decision-record.md`; `docs/flow-overview.md`; `docs/api-contract.md` for APIs, firmware endpoints, CLI commands, or web application flows; `docs/database-schema.md` for persistent data; and `docs/DESIGN.md` plus `docs/design-intent.json` for UI scope.
|
|
104
|
+
3. Use `docs/doc-index.md` as the compact read-routing map. Add PRD, SRS, technical-design, or separate ERD only when project evidence justifies them.
|
|
105
|
+
4. Write formal project docs in English by default unless the user asks otherwise.
|
|
106
|
+
5. Stop after documentation when the user only asked for docs. Do not write application, firmware, or UI code until the user asks or approves implementation; do not write application, firmware, or UI code before approval.
|
|
107
|
+
|
|
108
|
+
### 2. New Project Planning
|
|
109
|
+
|
|
110
|
+
Trigger: create, build, new project, scaffold.
|
|
111
|
+
|
|
112
|
+
1. Resolve relevant rules.
|
|
113
|
+
2. Read `init-project.md`.
|
|
114
|
+
3. Infer constraints, required docs, and boundaries from requirements, repo evidence, docs, and live research.
|
|
115
|
+
4. Recommend runtime/architecture when unresolved.
|
|
116
|
+
5. WAIT for user approval before generating code.
|
|
117
|
+
|
|
118
|
+
### 3. Refactor Mode
|
|
119
|
+
|
|
120
|
+
Trigger: refactor, improve, fix, clean up.
|
|
121
|
+
|
|
122
|
+
1. Resolve relevant rules.
|
|
123
|
+
2. Read `refactor.md`.
|
|
124
|
+
3. Apply active prompt/checklist contracts.
|
|
125
|
+
4. Propose a plan before edits.
|
|
126
|
+
5. WAIT for approval.
|
|
127
|
+
|
|
128
|
+
### 4. Code Review Mode
|
|
129
|
+
|
|
130
|
+
Trigger: review, audit, check, analyze.
|
|
131
|
+
|
|
132
|
+
Load `pr-checklist.md` and `architecture-review.md`, then report defects, risks, regressions, and missing tests first.
|
|
133
|
+
|
|
134
|
+
### 5. UI Design Mode
|
|
135
|
+
|
|
136
|
+
Trigger: ui, ux, layout, screen, tailwind, frontend, redesign.
|
|
137
|
+
|
|
138
|
+
1. Read `bootstrap-design.md` and `frontend-architecture.md`.
|
|
139
|
+
2. Read UI-relevant repo evidence from state, current UI code, and `docs/*`.
|
|
140
|
+
3. Include a one-line Motion/Palette Decision before UI code; product categories are heuristics, not style presets.
|
|
141
|
+
4. Before UI code, record one real-world anchor, one signature motion behavior, and one typographic role contrast.
|
|
142
|
+
5. Ensure `docs/design-intent.json` includes `conceptualAnchor.anchorReference`, top-level `derivedTokenLogic`, `libraryResearchStatus`, `libraryDecisions[]`, and motion/palette decisions.
|
|
143
|
+
6. Generate or refine `docs/DESIGN.md` plus `docs/design-intent.json` before UI implementation.
|
|
144
|
+
7. Keep context isolated; do not eagerly load unrelated backend-only rules.
|
|
145
|
+
8. In UI Design Mode, choose the ambition level proactively. For broad screens or redesigns, treat expressive motion, spatial hierarchy, distinctive composition, and product-specific interaction as the baseline even when the user did not say "rich"; quiet or static surfaces require a concrete product, performance, accessibility, device, or dependency reason.
|
|
146
|
+
9. Do not let conceptual anchors collapse into room, darkroom, counting room, control room, war room, studio, lab, cockpit, or command center by habit. Prefer artifacts, workflows, custody chains, instruments, data behaviors, material systems, editorial systems, service rituals, or interaction mechanisms unless a physical place model is core to the product.
|
|
147
|
+
10. External websites and benchmark examples are candidate evidence for constraints, mechanics, and quality bars only. Do not copy their layout rhythm, palette, component skin, visual metaphor, or brand posture without explicit user approval and product-fit rationale.
|
|
148
|
+
|
|
149
|
+
## Reasoning Chain
|
|
150
|
+
|
|
151
|
+
When rejecting an approach or enforcing a rule, use:
|
|
152
|
+
|
|
153
|
+
```text
|
|
154
|
+
REASONING CHAIN
|
|
155
|
+
Problem: [risk]
|
|
156
|
+
Required Action: [boundary]
|
|
157
|
+
Why Required: [project protection]
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## Definition of Done
|
|
161
|
+
|
|
162
|
+
Never claim done without:
|
|
163
|
+
1. Relevant rules applied.
|
|
164
|
+
2. PR and architecture checklists considered.
|
|
165
|
+
3. Universal SOP gates satisfied: public and developer root `README.md`; `docs/architecture-decision-record.md`; plus `docs/DESIGN.md` and `docs/design-intent.json` for UI scope.
|
|
166
|
+
4. If `.agent-context/state/active-memory.json` exists and material project progress happened, refresh it while preserving privacy rules and user-owned entries.
|
|
167
|
+
5. MCP validation passed through `npm run validate`.
|
|
37
168
|
|
|
38
|
-
|
|
169
|
+
## Knowledge Inventory Checklist
|
|
39
170
|
|
|
40
|
-
|
|
171
|
+
Verify reachability when relevant: Layer 1 Rules, Layer 2 Runtime Decision Signals, Layer 3 Structural Planning Signals, Layer 4 Execution Contracts, Layer 5 Prompts, Layer 6 Governance Modes, Layer 7 State, Layer 8 Policies, Layer 9 Project Context.
|
|
41
172
|
|
|
42
|
-
|
|
173
|
+
## Operating Gates
|
|
43
174
|
|
|
44
|
-
|
|
175
|
+
- Before code: resolve active rules and contract.
|
|
176
|
+
- Before PR: run review checklists.
|
|
177
|
+
- Before deploy: check policy thresholds.
|
|
178
|
+
- Before major refactor: read `architecture-map.md`.
|
|
179
|
+
- Before UI implementation: confirm valid style context, design contract, and required docs.
|
package/CLAUDE.md
CHANGED
|
@@ -1,44 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Adapter Mode: thin
|
|
4
|
-
Adapter Source: .instructions.md
|
|
5
|
-
Canonical Snapshot SHA256: 728c7ecaa49ea69a3e9b03c1c88d25f310a1827f2cebb72de102b5ae5005ff0e
|
|
6
|
-
|
|
7
|
-
This repository is governed by a strict instruction contract.
|
|
8
|
-
Use [.instructions.md](.instructions.md) as the canonical policy source.
|
|
9
|
-
Use .agent-context/ for technical rules, prompts, checklists, policies, and state.
|
|
10
|
-
Treat README.md as public and developer overview, setup, usage, and user-facing context only when governance files conflict.
|
|
11
|
-
|
|
12
|
-
## Critical Bootstrap Floor
|
|
13
|
-
|
|
14
|
-
- If your host stops at this file, continue the chain manually before coding.
|
|
15
|
-
- Read `.agent-instructions.md` next when it exists.
|
|
16
|
-
- Memory continuity does not replace bootstrap loading.
|
|
17
|
-
- For UI, UX, layout, screen, tailwind, frontend, or redesign requests, load [bootstrap-design.md](.agent-context/prompts/bootstrap-design.md) and [frontend-architecture.md](.agent-context/rules/frontend-architecture.md) before code edits.
|
|
18
|
-
- For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
|
|
19
|
-
- For UI scope, create or refine `docs/DESIGN.md` and `docs/design-intent.json` before UI implementation.
|
|
20
|
-
- For documentation-first requests, create or refine required project docs in English by default and do not write application, firmware, or UI code until the user asks or approves.
|
|
21
|
-
- Create or refine root README.md as the public and developer entrypoint before implementation.
|
|
22
|
-
- For backend, API, data, auth, error, event, queue, worker, or distributed-system requests, load only relevant global rules from .agent-context/rules/ ([link](.agent-context/rules)).
|
|
23
|
-
- For ecosystem, framework, dependency, or Docker claims, perform live web research.
|
|
24
|
-
- Resolve runtime choices from project evidence and live official documentation; resolve structural planning from constraints and architecture boundaries.
|
|
25
|
-
|
|
26
|
-
## Mandatory Bootstrap Chain
|
|
27
|
-
|
|
28
|
-
1. Load [.instructions.md](.instructions.md).
|
|
29
|
-
2. Load `.agent-instructions.md` when present.
|
|
30
|
-
3. Load only relevant files from .agent-context/rules/ ([link](.agent-context/rules)).
|
|
31
|
-
4. Apply matching prompts from .agent-context/prompts/ ([link](.agent-context/prompts)).
|
|
32
|
-
5. Enforce .agent-context/review-checklists/ ([link](.agent-context/review-checklists/pr-checklist.md)).
|
|
33
|
-
6. Use .agent-context/state/ ([link](.agent-context/state)) and .agent-context/policies/ ([link](.agent-context/policies)) only when relevant.
|
|
34
|
-
7. Use project docs and live evidence for runtime, dependency, and architecture claims.
|
|
35
|
-
|
|
36
|
-
## Bootstrap Receipt
|
|
37
|
-
|
|
38
|
-
For non-trivial coding, review, planning, or governance work, produce a short Bootstrap Receipt before implementation output: `loaded_files`, `selected_rules`, `skipped_rules`, `unreachable_files`, and `validation_plan`.
|
|
39
|
-
|
|
40
|
-
## Completion Gate
|
|
41
|
-
|
|
42
|
-
Run [pr-checklist.md](.agent-context/review-checklists/pr-checklist.md) before declaring work complete.
|
|
43
|
-
|
|
44
|
-
If this adapter drifts from canonical behavior, refresh from [.instructions.md](.instructions.md) and update the hash metadata.
|
|
1
|
+
@AGENTS.md
|
package/CONTRIBUTING.md
CHANGED
|
@@ -13,7 +13,6 @@ Thanks for wanting to make AI agents write better code. Here's how to contribute
|
|
|
13
13
|
| Structural planning guidance update | `.agent-context/prompts/`, `lib/cli/compiler.mjs` | Scope planning, docs bootstrap, and project-context guidance |
|
|
14
14
|
| New checklist | `.agent-context/review-checklists/` | Self-audit guide |
|
|
15
15
|
| State intelligence update | `.agent-context/state/` | Architecture boundaries and dependency map |
|
|
16
|
-
| Override policy update | `.agent-override.md` | Scoped rule exceptions |
|
|
17
16
|
| MCP workflow update | `mcp.json` | Self-healing automation flow |
|
|
18
17
|
| Bug fix | Any file | Typos, broken links, incorrect rules |
|
|
19
18
|
| Improvement | Any file | Sharper wording, stricter boundaries |
|
|
@@ -63,7 +62,7 @@ If all three are "yes", it belongs here.
|
|
|
63
62
|
- Core principle (1-2 sentences)
|
|
64
63
|
- BANNED / REQUIRED sections with enforceable boundaries
|
|
65
64
|
- Decision tree or quick ruleset when it reduces ambiguity
|
|
66
|
-
3. Update
|
|
65
|
+
3. Update `AGENTS.md` or `.agent-context/` as the source, then verify thin adapters with `npm run check:adapters`
|
|
67
66
|
4. Update `review-checklists/pr-checklist.md` when the rule is part of review scope
|
|
68
67
|
5. Validate and PR
|
|
69
68
|
|
|
@@ -88,7 +87,7 @@ If all three are "yes", it belongs here.
|
|
|
88
87
|
- Generic content that reads like it was auto-generated without thought
|
|
89
88
|
- Rules without concrete enforcement boundaries
|
|
90
89
|
- Stack profiles for languages the author doesn't actually use in production
|
|
91
|
-
- PRs that don't update the relevant source files,
|
|
90
|
+
- PRs that don't update the relevant source files, docs, validators, and checklists
|
|
92
91
|
|
|
93
92
|
---
|
|
94
93
|
|
package/GEMINI.md
CHANGED
|
@@ -1,44 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Adapter Mode: thin
|
|
4
|
-
Adapter Source: .instructions.md
|
|
5
|
-
Canonical Snapshot SHA256: 728c7ecaa49ea69a3e9b03c1c88d25f310a1827f2cebb72de102b5ae5005ff0e
|
|
6
|
-
|
|
7
|
-
This repository is governed by a strict instruction contract.
|
|
8
|
-
Use [.instructions.md](.instructions.md) as the canonical policy source.
|
|
9
|
-
Use .agent-context/ for technical rules, prompts, checklists, policies, and state.
|
|
10
|
-
Treat README.md as public and developer overview, setup, usage, and user-facing context only when governance files conflict.
|
|
11
|
-
|
|
12
|
-
## Critical Bootstrap Floor
|
|
13
|
-
|
|
14
|
-
- If your host stops at this file, continue the chain manually before coding.
|
|
15
|
-
- Read `.agent-instructions.md` next when it exists.
|
|
16
|
-
- Memory continuity does not replace bootstrap loading.
|
|
17
|
-
- For UI, UX, layout, screen, tailwind, frontend, or redesign requests, load [bootstrap-design.md](.agent-context/prompts/bootstrap-design.md) and [frontend-architecture.md](.agent-context/rules/frontend-architecture.md) before code edits.
|
|
18
|
-
- For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
|
|
19
|
-
- For UI scope, create or refine `docs/DESIGN.md` and `docs/design-intent.json` before UI implementation.
|
|
20
|
-
- For documentation-first requests, create or refine required project docs in English by default and do not write application, firmware, or UI code until the user asks or approves.
|
|
21
|
-
- Create or refine root README.md as the public and developer entrypoint before implementation.
|
|
22
|
-
- For backend, API, data, auth, error, event, queue, worker, or distributed-system requests, load only relevant global rules from .agent-context/rules/ ([link](.agent-context/rules)).
|
|
23
|
-
- For ecosystem, framework, dependency, or Docker claims, perform live web research.
|
|
24
|
-
- Resolve runtime choices from project evidence and live official documentation; resolve structural planning from constraints and architecture boundaries.
|
|
25
|
-
|
|
26
|
-
## Mandatory Bootstrap Chain
|
|
27
|
-
|
|
28
|
-
1. Load [.instructions.md](.instructions.md).
|
|
29
|
-
2. Load `.agent-instructions.md` when present.
|
|
30
|
-
3. Load only relevant files from .agent-context/rules/ ([link](.agent-context/rules)).
|
|
31
|
-
4. Apply matching prompts from .agent-context/prompts/ ([link](.agent-context/prompts)).
|
|
32
|
-
5. Enforce .agent-context/review-checklists/ ([link](.agent-context/review-checklists/pr-checklist.md)).
|
|
33
|
-
6. Use .agent-context/state/ ([link](.agent-context/state)) and .agent-context/policies/ ([link](.agent-context/policies)) only when relevant.
|
|
34
|
-
7. Use project docs and live evidence for runtime, dependency, and architecture claims.
|
|
35
|
-
|
|
36
|
-
## Bootstrap Receipt
|
|
37
|
-
|
|
38
|
-
For non-trivial coding, review, planning, or governance work, produce a short Bootstrap Receipt before implementation output: `loaded_files`, `selected_rules`, `skipped_rules`, `unreachable_files`, and `validation_plan`.
|
|
39
|
-
|
|
40
|
-
## Completion Gate
|
|
41
|
-
|
|
42
|
-
Run [pr-checklist.md](.agent-context/review-checklists/pr-checklist.md) before declaring work complete.
|
|
43
|
-
|
|
44
|
-
If this adapter drifts from canonical behavior, refresh from [.instructions.md](.instructions.md) and update the hash metadata.
|
|
1
|
+
@AGENTS.md
|
package/README.md
CHANGED
|
@@ -10,12 +10,13 @@
|
|
|
10
10
|
**Production-grade Rules Engine (Governance Engine) for AI coding agents.**
|
|
11
11
|
Works with Cursor, Windsurf, GitHub Copilot, Claude Code, Gemini, and other LLM-powered IDE workflows.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Current package version: 3.0.48.
|
|
14
14
|
|
|
15
|
-
Highlights
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
15
|
+
Highlights:
|
|
16
|
+
- Uses `AGENTS.md` as the canonical instruction entrypoint.
|
|
17
|
+
- Keeps Claude Code and Gemini bridges as native `@AGENTS.md` imports.
|
|
18
|
+
- Loads detailed rules lazily from `.agent-context/` by task scope.
|
|
19
|
+
- Keeps MCP workspace files opt-in through `--mcp-template`.
|
|
19
20
|
|
|
20
21
|
</div>
|
|
21
22
|
|
|
@@ -29,11 +30,12 @@ Highlights in 3.0.40:
|
|
|
29
30
|
npx @ryuenn3123/agentic-senior-core init
|
|
30
31
|
```
|
|
31
32
|
|
|
32
|
-
One command to initialize
|
|
33
|
+
One command to initialize `AGENTS.md`, native import bridges, checklists, policies, state files, and the lazy `.agent-context/` rule library for your project.
|
|
33
34
|
|
|
34
|
-
> **See [docs/deep-dive.md](docs/deep-dive.md) and [docs/roadmap.md](docs/roadmap.md) for
|
|
35
|
+
> **See [docs/doc-index.md](docs/doc-index.md), [docs/deep-dive.md](docs/deep-dive.md), and [docs/roadmap.md](docs/roadmap.md) for deeper CLI, architecture, integration, and roadmap context.**
|
|
35
36
|
|
|
36
|
-
-
|
|
37
|
+
- Default init copies the compact instruction surface and writes onboarding, selected policy, token optimization, and memory continuity state.
|
|
38
|
+
- MCP workspace files are disabled by default. Add `--mcp-template` when you want starter IDE MCP configuration files.
|
|
37
39
|
- When project docs are scaffolded, `docs/doc-index.md` is used as the compact map for deeper docs so agents can read the right files without scanning every Markdown file.
|
|
38
40
|
- Local backup snapshots are written under `.agentic-backup/`; init and upgrade ensure that folder is ignored by the target repository.
|
|
39
41
|
- Package scope is `@ryuenn3123`; the GitHub repository owner is `fatidaprilian`.
|
|
@@ -76,8 +78,8 @@ If you see `Property $schema is not allowed`, keep `.vscode/mcp.json` without `$
|
|
|
76
78
|
|
|
77
79
|
| Command | Purpose |
|
|
78
80
|
|---------|---------|
|
|
79
|
-
| `agentic-senior-core init` | Initialize the project guidance pack
|
|
80
|
-
| `agentic-senior-core upgrade --dry-run` | Preview
|
|
81
|
+
| `agentic-senior-core init` | Initialize the compact project guidance pack and native agent entrypoints |
|
|
82
|
+
| `agentic-senior-core upgrade --dry-run` | Preview managed-surface upgrades |
|
|
81
83
|
| `agentic-senior-core optimize --show` | Show token optimization state |
|
|
82
84
|
| `npm run audit:v3-purge` | Run deep purge readiness audit (no deletion) |
|
|
83
85
|
| `npm run clean:local` | Remove ignored local reports, backups, benchmarks, and active-memory state |
|
|
@@ -94,26 +96,24 @@ npx @ryuenn3123/agentic-senior-core upgrade --yes
|
|
|
94
96
|
|
|
95
97
|
Use `--dry-run` first to preview changes safely, then apply with `--yes`.
|
|
96
98
|
|
|
97
|
-
Upgrade now performs managed-surface synchronization by default: obsolete
|
|
99
|
+
Upgrade now performs managed-surface synchronization by default: obsolete Agentic-managed instruction files are pruned so the pack stays aligned with the latest release.
|
|
98
100
|
Use `--no-prune` if you want to keep legacy managed files.
|
|
99
101
|
|
|
100
102
|
When upgrade creates `.agentic-backup/`, it also keeps the target root `.gitignore` aligned with that local-only backup folder. The backup is for rollback safety, not a source of truth and not a file to commit.
|
|
101
103
|
|
|
102
104
|
## Instruction Entrypoints
|
|
103
105
|
|
|
104
|
-
The canonical source is
|
|
106
|
+
The canonical installed source is `AGENTS.md`.
|
|
105
107
|
|
|
106
|
-
|
|
108
|
+
Default init and upgrade now keep the project root compact:
|
|
107
109
|
- `AGENTS.md`
|
|
108
110
|
- `CLAUDE.md`
|
|
109
111
|
- `GEMINI.md`
|
|
110
|
-
- `.
|
|
111
|
-
- `.windsurf/rules/agentic-senior-core.md`
|
|
112
|
-
- `.github/copilot-instructions.md`
|
|
113
|
-
- `.github/instructions/agentic-senior-core.instructions.md`
|
|
114
|
-
- `.gemini/instructions.md`
|
|
112
|
+
- `.agent-context/`
|
|
115
113
|
|
|
116
|
-
|
|
114
|
+
`CLAUDE.md` and `GEMINI.md` are native import bridges that load `AGENTS.md`. Detailed rules, prompts, checklists, policies, and state stay under `.agent-context/` and load by task scope.
|
|
115
|
+
|
|
116
|
+
Deprecated legacy files such as `.instructions.md`, `.agent-instructions.md`, `.cursorrules`, `.windsurfrules`, `.agent-override.md`, tool-specific rule directories, and copied Copilot/Gemini instruction folders are no longer generated by default. Upgrade prunes Agentic-managed copies while preserving user-owned files without Agentic markers.
|
|
117
117
|
|
|
118
118
|
---
|
|
119
119
|
|
|
@@ -159,9 +159,11 @@ This repository publishes to npm automatically through GitHub Actions on every p
|
|
|
159
159
|
|
|
160
160
|
Release checklist:
|
|
161
161
|
|
|
162
|
-
1.
|
|
163
|
-
2.
|
|
164
|
-
3.
|
|
162
|
+
1. Run `node scripts/bump-version.mjs <version>`.
|
|
163
|
+
2. Fill the matching release notes in `CHANGELOG.md`.
|
|
164
|
+
3. Run `npm run check:adapters`, `npm run validate`, `npm test`, `npm run gate:release`, and `git diff --check`.
|
|
165
|
+
4. Commit with a Conventional Commit message.
|
|
166
|
+
5. Push to `origin/main`.
|
|
165
167
|
|
|
166
168
|
Important notes:
|
|
167
169
|
|