@ryuenn3123/agentic-senior-core 4.3.13 → 4.3.15
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.
|
@@ -15,7 +15,7 @@ When a new project is created or initialized, the agent must automatically:
|
|
|
15
15
|
## Required Planning Mode
|
|
16
16
|
|
|
17
17
|
If the user describes a project or feature, the agent must:
|
|
18
|
-
1.
|
|
18
|
+
1. Before drafting docs from a thin or ambiguous brief, ask the smallest useful set of clarifying questions needed to make delivery goals, edge cases, constraints, must-have capabilities, and non-goals explicit. If the user wants a draft anyway, document assumptions and wait for approval before coding.
|
|
19
19
|
2. If the user already named a stack or framework, treat it as an explicit constraint. If not, produce a short evidence-backed recommendation from the brief, repo evidence, and live official documentation before coding. Include at least one plausible alternative when the default-looking option is Next.js, Tailwind-only styling, shadcn/ui, or another familiar web stack.
|
|
20
20
|
3. For existing projects, inspect real files first. Do not derive product name, description, runtime, architecture, or design direction from the folder name alone.
|
|
21
21
|
4. Draft a high-level structure plan plus the docs/bootstrap artifacts that must exist before coding.
|
|
@@ -29,6 +29,7 @@ Refactor rules:
|
|
|
29
29
|
- Prefer the shorter implementation only when it keeps the same guarantees.
|
|
30
30
|
- Run a final simplification pass before completion.
|
|
31
31
|
- Update tests and docs whenever behavior contracts, public APIs, data shape, or UI contracts change.
|
|
32
|
+
- When fixing a bug: append one sentence to the nearest relevant doc (`docs/flow-overview.md` or `docs/architecture-decision-record.md`) naming the root cause and how to prevent recurrence.
|
|
32
33
|
|
|
33
34
|
For every meaningful change, explain:
|
|
34
35
|
- what risk or friction existed
|
package/AGENTS.md
CHANGED
|
@@ -17,21 +17,20 @@ Write instructions as imperative gates:
|
|
|
17
17
|
- Move detailed policy into `.agent-context/`.
|
|
18
18
|
- Add validation when a rule can drift.
|
|
19
19
|
|
|
20
|
-
##
|
|
21
|
-
|
|
20
|
+
## MANDATORY FIRST STEP: Context Activation
|
|
21
|
+
STOP. Before generating ANY plan, code, or design for a non-trivial task, you MUST run `agentic-senior-core context "<task_description>"` (or `npx @ryuenn3123/agentic-senior-core context "<task_description>"`) to resolve scopes. Do not guess or hallucinate context.
|
|
22
|
+
|
|
23
|
+
Immediately emit a concise Bootstrap Receipt:
|
|
22
24
|
- `loaded_files`: files actually read (exact paths from selectedRules/selectedPrompts only; zero hallucination)
|
|
23
25
|
- `selected_rules`: files selected for this scope and why
|
|
24
26
|
- `skipped_rules`: out-of-scope categories left unloaded
|
|
25
27
|
- `unreachable_files`: required files that could not be read
|
|
26
28
|
- `validation_plan`: expected checks before completion
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
## Default Activation And Command Economy
|
|
31
|
-
Before any non-trivial task, run `agentic-senior-core context "<task_description>"` and emit the Bootstrap Receipt. Skip only for trivial tasks: version bumps, typo fixes, single-line commits.
|
|
32
|
-
Always prefix noisy shell commands: `ascx git status`, `ascx git diff`, `ascx npm test`, `ascx npm install`, `ascx npm run build`, `ascx tsc`, `ascx rg` searches. Use raw commands only for pipes, redirects, or commands not supported by ascx.
|
|
33
|
-
Always read and apply `.agent-context/prompts/compact-natural-mode.md` for every final user-facing reply. Never repeat full command output; reference tee file paths when truncated.
|
|
30
|
+
Skip this step ONLY for trivial tasks (version bumps, typo fixes).
|
|
34
31
|
|
|
32
|
+
## Command Economy
|
|
33
|
+
Use noisy command forms: `ascx git status`, `ascx git diff`, `ascx npm test`, `ascx npm install`, `ascx npm run build`, `ascx tsc`, `ascx rg`. Use raw commands only for pipes/redirects or unsupported commands. Apply `.agent-context/prompts/compact-natural-mode.md` for every final reply; never repeat full output; reference tee paths when truncated.
|
|
35
34
|
## Layer Index
|
|
36
35
|
### Layer 1: Rules (18 Files) [SCOPE-RESOLVED]
|
|
37
36
|
Location: `.agent-context/rules/`.
|
|
@@ -40,7 +39,6 @@ Load only relevant rule files. Do not read the entire rule directory by default.
|
|
|
40
39
|
|
|
41
40
|
Available rules: `architecture.md` (`ARCH-*`, v4), `security.md` (`SEC-*`, v4), `performance.md` (`PERF-*`, v4), `error-handling.md` (`ERR-*`, v4), `testing.md` (`TEST-*`, v4), `api-docs.md` (`API-*`, v4), `microservices.md` (`SVC-*`, v4), `event-driven.md` (`EVT-*`, v4), `database-design.md` (`DATA-*`, v4), `realtime.md` (`RT-*`, v4), `frontend-architecture.md` (`FE-*`, v4), `docker-runtime.md` (`DOCK-*`, v4), `observability.md` (`OBS-*`, v4), `resilience.md` (`RES-*`, v4), `migrations.md` (`MIG-*`, v4), `background-jobs.md` (`JOB-*`, v4), `config-and-flags.md` (`CFG-*`, v4), `api-versioning.md` (`VER-*`, v4).
|
|
42
41
|
|
|
43
|
-
|
|
44
42
|
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. 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.
|
|
45
43
|
|
|
46
44
|
Backend/API routing:
|
|
@@ -171,4 +169,11 @@ Verify reachability of relevant files in Layer 1 to Layer 9 before generating im
|
|
|
171
169
|
- Before PR: run review checklists.
|
|
172
170
|
- Before deploy: check policy thresholds.
|
|
173
171
|
- Before major refactor: read `architecture-map.md`.
|
|
174
|
-
- Before UI implementation: confirm valid style context, design contract, and required docs.
|
|
172
|
+
- Before UI implementation: confirm valid style context, design contract, and required docs.
|
|
173
|
+
|
|
174
|
+
## Git Workflow
|
|
175
|
+
Branch from main with `feat/`, `fix/`, `docs/`, or `chore/`; no direct commits to main. Use Conventional Commits: `feat:`, `fix:`, `docs:`, `refactor:`, `chore:`, `test:`.
|
|
176
|
+
PRs use squash merge only, clean Markdown summaries, a Testing section, and `npm run validate` before opening. Bug fixes add one root-cause/prevention sentence to the nearest relevant doc.
|
|
177
|
+
|
|
178
|
+
## Do Not Modify
|
|
179
|
+
Never touch `.agentic-backup/`. Update `package-lock.json` only via `ascx npm install`. Preserve user entries in `.agent-context/state/active-memory.json`. Regenerate `benchmarks/results/` via npm scripts only.
|