@ngockhoale/ukit 2.1.4 → 2.2.1
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/CHANGELOG.md +44 -0
- package/README.md +7 -4
- package/manifests/platform.full.yaml +113 -24
- package/package.json +4 -3
- package/src/cli/adapters.js +47 -21
- package/src/cli/index.js +2 -2
- package/src/core/applyPlan.js +5 -2
- package/src/core/ensureGitignore.js +2 -0
- package/src/core/runInstallPipeline.js +19 -0
- package/src/core/runtimeConfig.js +12 -2
- package/src/core/status.js +3 -1
- package/src/core/uninstall.js +16 -0
- package/src/index/routeCatalog.js +1 -1
- package/src/index/taskRouting.js +9 -2
- package/src/manifest/selectItems.js +11 -5
- package/templates/.claude/agents/code-reviewer.md +42 -1
- package/templates/.claude/commands/ukit/handoff-create.md +6 -4
- package/templates/.claude/commands/ukit/handoff-fullstack.md +12 -10
- package/templates/.claude/commands/ukit/handoff-implement.md +4 -2
- package/templates/.claude/commands/ukit/handoff-review.md +4 -2
- package/templates/.claude/ukit/index/route-catalog.mjs +1 -1
- package/templates/.claude/ukit/index/unic-gateway.mjs +46 -7
- package/templates/.codex/README.md +1 -1
- package/templates/.gitignore +2 -0
- package/templates/.omp/AGENTS.md +9 -0
- package/templates/.omp/README.md +96 -0
- package/templates/.omp/RULES.md +34 -0
- package/templates/.omp/agents/bug-debugger.md +85 -0
- package/templates/.omp/agents/code-reviewer.md +197 -0
- package/templates/.omp/agents/feature-implementer.md +123 -0
- package/templates/.omp/agents/handoff-planner.md +210 -0
- package/templates/.omp/agents/ukit-small-task-maintainer.md +72 -0
- package/templates/.omp/agents/ukit-vision-analyst.md +100 -0
- package/templates/.omp/config.yml +88 -0
- package/templates/.omp/hooks/pre/ukit-bridge.js +336 -0
- package/templates/AGENTS.md +2 -2
- package/templates/CLAUDE.md +8 -0
- package/templates/docs/PROJECT.md +1 -1
- package/templates/ukit/storage/config.json +18 -3
- package/templates/adapter-presets/antigravity/README.md +0 -22
- package/templates/adapter-presets/antigravity/rules.md +0 -49
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# Project Rules — {{project.name}}
|
|
2
|
-
|
|
3
|
-
Auto-generated by UKit. Edit `.claude/` sources to update.
|
|
4
|
-
|
|
5
|
-
## Core policy
|
|
6
|
-
|
|
7
|
-
- Natural language only; do not require slash commands or skill names.
|
|
8
|
-
- If helper/index commands are needed, run them internally and never ask users to run them.
|
|
9
|
-
- Quality first, keep latency low, avoid repeated token waste.
|
|
10
|
-
- Reuse shared route state from `.claude/ukit/skill-router-state.json`. If it already carries compact `previous-context` or `recent-output` lines, use those before widening docs, memory, or raw logs.
|
|
11
|
-
- Shared runtime lives in `.ukit/storage/`. Reuse `.ukit/storage/memory/`, `.ukit/storage/cache/compact-pressure.json`, `.ukit/storage/cache/output-history.json`, and `.ukit/storage/cache/tee/` before asking users to restate context.
|
|
12
|
-
|
|
13
|
-
## Route fast
|
|
14
|
-
|
|
15
|
-
- `fix/bug/error/debug/lỗi/sửa` → fix lane
|
|
16
|
-
- `review/audit/check/soát code` → review lane
|
|
17
|
-
- `brainstorm/idea/design/plan` → design lane
|
|
18
|
-
- `build/implement/add/create` → build lane
|
|
19
|
-
- `clone/copy/similar/giống/tương tự` → follow-pattern lane
|
|
20
|
-
- `test/spec/coverage` → test lane
|
|
21
|
-
- `docs/readme/changelog/tài liệu` → docs lane
|
|
22
|
-
- If intent is ambiguous, ask one short clarifying question.
|
|
23
|
-
- If routing is complex or shared route memory needs refresh, run `node .antigravity/ukit/index/route-task.mjs "<prompt>" [--tool-command <cmd>] [--target <file>]`.
|
|
24
|
-
|
|
25
|
-
## Skill + context loop
|
|
26
|
-
|
|
27
|
-
- Auto-activate the smallest useful installed skill set from prompt + tool/file evidence.
|
|
28
|
-
- Prefer `node .antigravity/ukit/index/resolve-context.mjs "<intent>" [--target <file>]` after choosing a skill.
|
|
29
|
-
- Prefer `node .antigravity/ukit/index/verify-context.mjs "<intent>" [--target <file>]` for verification planning.
|
|
30
|
-
|
|
31
|
-
## Indexed reading + verification
|
|
32
|
-
|
|
33
|
-
- Trivial: no docs, 1-2 files, minimal verify.
|
|
34
|
-
- Simple: `docs/MEMORY.md` only, 2-5 files, targeted verify.
|
|
35
|
-
- Non-trivial/risky: `docs/MEMORY.md` + `docs/PROJECT.md` + `docs/CODE_MAP.md`, broader verify.
|
|
36
|
-
- `docs/WORKLOG.md`: recent relevant entries only.
|
|
37
|
-
- Clone/follow-pattern: open at least 1 analog file.
|
|
38
|
-
- Shared logic: open the shared abstraction.
|
|
39
|
-
- Bug with tests: open related test first.
|
|
40
|
-
- If broad verification is blocked because targeted verification was skipped, go back to the routed targeted lane first.
|
|
41
|
-
- For bugfix tasks, run index-first triage: `node .antigravity/ukit/index/build-index.mjs` then `node .antigravity/ukit/index/triage.mjs "<error signature>"`, inspect top suspects, then widen only if needed.
|
|
42
|
-
|
|
43
|
-
## Safety
|
|
44
|
-
|
|
45
|
-
- Package manager: `{{runtime.packageManager}}`.
|
|
46
|
-
- Keep scope tight and prefer existing code paths.
|
|
47
|
-
- Update `docs/WORKLOG.md`, `docs/MEMORY.md`, `docs/CODE_MAP.md`, or `docs/PROJECT.md` after significant work when relevant.
|
|
48
|
-
- Never edit `.env*`, lock files, `.git/`, or `node_modules/`.
|
|
49
|
-
- Never run destructive commands without explicit confirmation.
|