@akinet/akidevrule 3.3.1 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +34 -29
  3. package/claude/CLAUDE.md +5 -6
  4. package/claude/agents/aki-challenger.md +1 -1
  5. package/claude/agents/aki-conduct.md +2 -2
  6. package/claude/agents/aki-hands.md +4 -4
  7. package/claude/agents/aki-judge.md +2 -2
  8. package/claude/agents/aki-maker.md +2 -2
  9. package/install.mjs +115 -292
  10. package/lib/permissions.mjs +244 -0
  11. package/package.json +5 -2
  12. package/payload/GEMINI.md +2 -0
  13. package/payload/METHOD-audit-frozen-reference.md +33 -0
  14. package/payload/METHOD-audit-zero-trust.md +1 -1
  15. package/payload/METHOD-deep-think.md +1 -1
  16. package/payload/RULE-agent-behavior.md +4 -2
  17. package/payload/RULE-coding.md +2 -1
  18. package/payload/RULE-content-write.md +3 -3
  19. package/payload/RULE-docs.md +27 -6
  20. package/payload/RULE-pattern-core.md +1 -1
  21. package/payload/RULE-release.md +37 -17
  22. package/payload/RULE-seo.md +15 -13
  23. package/payload/RULE-stack-akiNuxtCf.md +1 -0
  24. package/payload/RULE-ui-pattern.md +1 -1
  25. package/payload/index.md +14 -10
  26. package/skills/aki-article-writer/SKILL.md +7 -7
  27. package/skills/aki-article-writer/references/article-workflow.md +11 -15
  28. package/skills/akidevsync-notes/SKILL.md +1 -1
  29. package/skills/akiflow/references/harness-facts.md +8 -6
  30. package/skills/akiflow/scripts/release_lint.py +157 -0
  31. package/skills/akihelp/SKILL.md +7 -7
  32. package/skills/akihtmlreport/SKILL.md +1 -1
  33. package/skills/akilint/SKILL.md +1 -1
  34. package/skills/akiopen/SKILL.md +38 -0
  35. package/skills/akirule/SKILL.md +46 -130
  36. package/skills/akiship/SKILL.md +6 -3
  37. package/skills/akithink/SKILL.md +8 -7
  38. package/skills/akiflow/scripts/council-cost.sh +0 -4
  39. package/skills/akiflow/scripts/council-open.sh +0 -4
  40. package/skills/akiflow/scripts/council-read.sh +0 -4
  41. package/skills/akiflow/scripts/council-verify.sh +0 -4
  42. package/skills/akiflow/scripts/scythe.sh +0 -4
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  name: akithink
3
- description: Structured deep-thinking session between agent and human for important decisions — restate the problem, excavate the goal chain to the ultimate goal, first-principles decomposition (facts/constraints/assumptions), mandatory critique (steelman, inversion, pre-mortem), then converge into a decision record. For big / hard-to-reverse / goal-ambiguous problems — small inline questions are already covered passively by akirule + METHOD-deep-think. Also runnable self-run (non-interactive) when owner-authorized or fired by an `agent.A3` trigger. Recommends running on a top-tier model (Opus/Fable).
3
+ description: Structured deep thinking for decisions — restate the problem, excavate the goal chain to the ultimate goal, first-principles decomposition (facts/constraints/assumptions), mandatory critique (steelman, inversion, pre-mortem), then converge into a decision record. Thinking only: it never edits, runs or ships anything — what happens after the record is decided by the originating turn's class (`agent.A3`), outside this skill. Self-run mode (non-interactive, decide and report) fires on an `agent.A3` deep-think trigger or on owner authorization; trivial two-way-door calls stay inline. Interactive session only when the owner asks for one. Best on a top-tier model (Opus/Fable).
4
4
  ---
5
5
 
6
6
  # akithink — structured deep-thinking session
7
7
 
8
- Invoke with `/akithink`, or when the user explicitly asks for a deep-thinking session on a decision ("let's think this through properly", "hãy tư duy sâu về việc này", "cần một session suy nghĩ kỹ"). This is the **active** consumption mode of `payload/METHOD-deep-think.md` — the same analytical brain that akirule loads passively for ordinary tasks, run here at maximum depth through an interactive protocol.
8
+ The **active** consumption mode of `payload/METHOD-deep-think.md` — the same analytical brain the router loads passively for ordinary tasks, run at maximum depth: interactively when the owner asks for a session, in self-run mode when an `agent.A3` deep-think trigger holds (Invocation scope). It thinks; it never acts (`pattern.A3`).
9
9
 
10
10
  ## When NOT to use this skill
11
11
 
12
- Small, reversible, low-cost-of-error decisions should just be decided. Casual "should we…?" questions are already handled inline by akirule auto-loading `METHOD-deep-think.md` passively — that is enough for two-way-door decisions. Reach for `/akithink` only when the decision is big, hard to reverse (one-way-door), or the goal itself is still unclear. Do not open a session for something that a one-paragraph answer would resolve.
12
+ Trivial, reversible execution with nothing to decide gets no session — act. An interactive session is reserved for a decision the owner wants to reason through together; a decision that meets an `agent.A3` trigger runs in self-run mode (see Invocation scope), scaled in depth to how hard the decision is to reverse; a two-way-door call is decided inline.
13
13
 
14
14
  ## Toolbox
15
15
 
@@ -50,18 +50,19 @@ Then:
50
50
  ## Interaction rules
51
51
 
52
52
  - **Pacing:** ask 1–2 highest-value questions per turn. `AskUserQuestion` is fine for discrete choices. Never dump a full questionnaire in one turn.
53
- - **Escape hatch:** the user can say "chốt" (or an equivalent "let's converge/decide now") at any point to jump straight to Phase 5 with whatever has been established so far.
53
+ - **Escape hatch:** the user can ask to converge or decide now, in any wording, at any point to jump straight to Phase 5 with whatever has been established so far.
54
54
  - **Anti-sycophancy:** same rule as METHOD Module 3 — do not agree without critique, in any phase.
55
55
  - **Anti-overuse guard:** if the problem turns out to be small and reversible once restated in Phase 1, say so and offer to just decide it directly instead of running the full protocol.
56
56
 
57
57
  ## Self-run mode
58
58
 
59
- Runs all phases without waiting, when the owner authorizes the agent to run it itself (e.g. "tự nạp /akithink", "tự chốt", "cho bạn tự quyết") or when fired by an `agent.A3` deep-think trigger:
59
+ Runs all phases without waiting, when the owner authorizes the agent to decide on its own, in any wording, or when fired by an `agent.A3` deep-think trigger:
60
60
  - Phase 1 restatement is written, not confirmed.
61
61
  - The Interaction rules pacing (1–2 questions per turn) does not apply — no questions are asked mid-session.
62
62
  - Questions reach the owner only via `agent.A3`'s escalation outcomes, never through this skill's own turn-by-turn interaction.
63
- - Phase 5 converges, acts, and reports the decision block (`agent.A3`'s converged outcome). A decision-record doc per `RULE-docs.md` still applies when the decision is durable.
63
+ - Phase 5 converges and reports the decision block (`agent.A3`'s converged outcome), and the session ends there. This skill thinks and never acts (`pattern.A3`): whether anything is then executed is decided by the class of the originating turn — a task turn proceeds under `agent.A3`, a question turn gets the block and nothing else. A decision-record doc per `RULE-docs.md` still applies when the decision is durable.
64
64
 
65
65
  ## Invocation scope
66
66
 
67
- Interactive mode is explicit-invoke only — akirule does not auto-trigger the interactive protocol; it is reached only when the user asks for it by name or in equivalent words. Self-run mode above is the exception: it fires from an `agent.A3` trigger or owner authorization, without an explicit `/akithink` invocation. The signals that matter for passive-mode auto-loading live on `METHOD-deep-think.md`.
67
+ - **Self-run — model-invoked, no confirmation.** Fires on an `agent.A3` deep-think trigger (that list is the only trigger list — not restated here), on the router's deep-think-depth line (`akirule`), or on owner authorization. Two-way-door work stays below it: decide inline with `METHOD-deep-think.md` passively.
68
+ - **Interactive — owner-invoked only**, by name or in equivalent words; never auto-started, because it spends the owner's turns.
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env bash
2
- # Transitional Unix wrapper — the Python file is the SSOT (cross-platform, incl. Windows).
3
- # Kept so existing prompts/docs that name "council-cost.sh" keep working on Unix during the transition.
4
- exec python3 "$(dirname "$0")/council_cost.py" "$@"
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env bash
2
- # Transitional Unix wrapper — the Python file is the SSOT (cross-platform, incl. Windows).
3
- # Kept so existing prompts/docs that name "council-open.sh" keep working on Unix during the transition.
4
- exec python3 "$(dirname "$0")/council_open.py" "$@"
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env bash
2
- # Transitional Unix wrapper — the Python file is the SSOT (cross-platform, incl. Windows).
3
- # Kept so existing prompts/docs that name "council-read.sh" keep working on Unix during the transition.
4
- exec python3 "$(dirname "$0")/council_read.py" "$@"
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env bash
2
- # Transitional Unix wrapper — the Python file is the SSOT (cross-platform, incl. Windows).
3
- # Kept so existing prompts/docs that name "council-verify.sh" keep working on Unix during the transition.
4
- exec python3 "$(dirname "$0")/council_verify.py" "$@"
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env bash
2
- # Transitional Unix wrapper — the Python file is the SSOT (cross-platform, incl. Windows).
3
- # Kept so existing prompts/docs that name "scythe.sh" keep working on Unix during the transition.
4
- exec python3 "$(dirname "$0")/scythe.py" "$@"