Published: Updated:
AkiDevRule — Claude Code + Antigravity agent baseline

AkiDevRule

Open Source

One install command turns a fresh Claude Code or Antigravity environment into Aki’s full working baseline.

github.com/lacvietanh/akidevrule  ·  master branch · Claude Code + Antigravity

Formerly named AkiClaudeDoc — renamed 27/07/2026.

AkiDevRule (formerly AkiClaudeDoc) is an open-source agent baseline package (MIT License, public since 22/05/2026), shared by Claude Code and Antigravity/Gemini. A single install command turns a fresh agent environment into Aki’s full working baseline: a shared rule corpus that loads itself at the right moment, plus a small set of six sharp, single-purpose skills. The corpus follows a strict naming convention (RULE-* for constraints, METHOD-* for frameworks) and is routed by the akirule skill in three tiers. The GitHub repository is the single source of truth. It is not an auto-updater, daemon, package manager or control plane.

Install — one command (master branch)

curl -fsSL https://raw.githubusercontent.com/lacvietanh/akidevrule/master/install.sh | bash

The script is intentionally simple — inspect it before running.

  • One curl command (master branch), or bash install.sh from a local checkout
  • Shared by Claude Code and Antigravity/Gemini — generated from one agent-neutral rule source
  • Rule corpus: 12 RULE-* + 6 METHOD-* + index; core @-import of 4 files (index, agent, coding, pattern)
  • akirule router + mandatory [RULES] receipt; high sensitivity — prefer over-load
  • 10 skills: akirule, akiflow, akithink, akihtmlreport, akihelp, akigitcommit, aki-article-writer, akidevsync-notes, akilint, akiship
  • 5 agent definitions (Claude Code): hands, judge, conduct, challenger, maker
  • Windows ✅ via install.py SSOT (Python 3.7+); notify-only updates, no daemon
  • MIT since 22/05/2026; rename 27/07; 1.0.0 (10/08), 2.0.0 (11/08), 2.1.0–2.6.1 (12–22/08); /akiship (2.4.0) collapses the release ritual into one command, an activation safety fix landed across 2.6.0–2.6.1

Core Ideas

One-command install, full baseline

A single curl command turns a fresh Claude Code or Antigravity environment into Aki’s full working baseline. You can also run bash install.sh from a local checkout. The script is intentionally simple so you can inspect it before running.

One source, two agents

The rule corpus is generated from a single agent-neutral source, shared by both Claude Code and Antigravity/Gemini — not two separate rule sets that can drift apart. The rename from AkiClaudeDoc to akidevrule (27/07/2026) marks exactly this scope widening.

A rule corpus that routes itself by naming

A strict naming convention: RULE-*.md are constraints (what the agent must or must not do — behavior, coding, docs, content, stack, UI, SEO, release, DB design, business); METHOD-*.md are analytical frameworks, heavy, loaded only when the task genuinely needs them; index.md holds the manifest, precedence order and project-binding policy.

Three-tier akirule router

akirule routes with deliberately high sensitivity (err toward loading): Tier 1 core loads every conversation (index.md, RULE-agent-behavior, RULE-coding, RULE-pattern-core) via @path embed syntax; Tier 2 contextual is read on signal match; Tier 3 is the analytical METHODs. No harness magic — Tiers 2–3 are just trigger instructions telling the agent to Read the file from ~/.aki/akidevrule/ when signals match. That is also why the four core files were promoted to @-import: a rule that loads only when the model decides to call a skill is never a guarantee.

akiflow — a lead-coordinated agent council

The lead pins the owner’s verbatim words as the run’s immutable anchor, splits the request into work items that must each quote a fragment of it, then convenes seats from the five installed agent definitions — every seat traced to a requirement, never picked from a menu. Three modes are discriminated by a single question, what changes outside the room: discuss, audit (read-only), execute (only aki-maker may write). A gate script refuses to close the run on a missing anchor, a requirement quoting nothing the owner wrote, or a declared seat that never posted.

Ten skills, each sharp at one job

akirule (automatic rule router), akiflow (the agent council), akithink (a 5-phase deep-thinking session ending in a docs/ decision record), akihtmlreport (distills a dense analysis into one self-contained REPORT.html), akihelp (a live intro to the installed system, rendered at runtime so it never goes stale), akigitcommit (turns a messy tree into a few clean Conventional Commits, stages by path, never git add -A or auto-pushes), aki-article-writer (an article pipeline with its own image-scout subagent), akidevsync-notes (reads and edits the Aki Dev Sync task list), akilint (mechanical sweep for hard-wrapped lines and rambling comments), akiship (runs the full release ritual in one command, autonomous under the B8 contract, stopping only for public-history ambiguity or a design contradiction).

One brain, two thinking modes

METHOD-deep-think.md is a single analytical brain (goal excavation, first principles, mandatory critique, conditional techbiz lens) consumed two ways: Passive — akirule auto-loads it inline when a normal task hits a signal ("should we…", "is it worth…"), applied briefly, at most one clarifying question; Active — run /akithink to drive the same METHOD through a full 5-phase protocol at maximum depth.

Update notifications — notify-only

A SessionStart hook compares the installed CHANGELOG.md against the public repo copy (at most once per 24h, fail-silent, non-blocking). When the remote is newer it only prints what’s new and the manual update command (git pull && bash install.sh). It never downloads or installs anything on its own.

The akirule router — three tiers

Tier 1 — Core

Loads every conversation via @path embed: index.md, RULE-agent-behavior.md, RULE-coding.md, RULE-pattern-core.md.

Tier 2 — Contextual

Read on signal match: docs, content-write, stack-akiNuxtCf, stack-tauri, ui-pattern, seo, release, db-design, biz.

Tier 3 — Methods

Analytical frameworks, loaded only when genuinely needed: flow-audit, deep-think, ux-psych, zero-trust-audit, proportionality, subtraction-audit.

Ten skills, each sharp at one job

akirule

automatic

A smart rule router, running on every conversation; hidden from the / menu.

akiflow

/akiflow

A lead-coordinated agent council; three modes: discuss, audit (read-only), execute.

akithink

/akithink

A 5-phase deep-thinking session ending in a docs/ decision record.

akihtmlreport

/akihtmlreport

Distills a dense in-conversation analysis into one self-contained REPORT.html.

akihelp

/akihelp

A live intro to the installed Aki system, rendered at runtime so it never goes stale.

akigitcommit

/akigitcommit

Turns a messy tree into a few clean Conventional Commits; stages by path, never git add -A, never auto-pushes.

aki-article-writer

/aki-article-writer

An article pipeline: fact-checking, SEO metadata, JSON-LD, with its own image-scout subagent.

akidevsync-notes

automatic

Reads and edits the .akidevsync/notes.json task list the Aki Dev Sync app writes.

akilint

/akilint

A mechanical sweep for hard-wrapped lines and rambling comments; judgment stays with the session.

akiship

/akiship

Runs the full release ritual in one command: front-loaded checks, then an unattended B7 checklist pass, committing via akigitcommit; stops only for public-history ambiguity or a design contradiction.

Author

Lạc Việt Anh  —  founder of the Aki ecosystem. AkiDevRule distills how he works with AI agents (Claude Code, Antigravity) across the ecosystem into a shared baseline, released as open source under the MIT License so the community can reference and reuse it.

AkiDevRule belongs to the ecosystem’s dev-tooling layer, tied to AkiDEV (dev.akitao.com) — which hosts the docs page and the install wrapper. See related projects: AkiDEV and Aki Dev Sync.

Frequently Asked Questions

What is AkiDevRule?
AkiDevRule (formerly named AkiClaudeDoc) is an open-source agent baseline shared by Claude Code and Antigravity/Gemini. With one install command it turns a fresh agent environment into Aki’s full working baseline: a shared rule corpus that loads itself at the right moment, plus ten sharp, single-purpose skills.
How do I install AkiDevRule?
Run: curl -fsSL https://raw.githubusercontent.com/lacvietanh/akidevrule/master/install.sh | bash (note the branch is master, not main). On Windows, clone the repo and run .\install.ps1 or py -3 install.py. The script is intentionally simple — inspect it before running.
Why was it renamed from AkiClaudeDoc?
On 27/07/2026 the repo renamed AkiClaudeDoc → akidevrule to match its widened scope: no longer Claude Code-only, it is now generated from one agent-neutral rule source shared by Claude Code and Antigravity/Gemini. The old GitHub URL auto-redirects to the new name.
What does AkiDevRule install, and where?
payload/* is synced into ~/.aki/akidevrule/ (excluding ref-ECC/): index.md, twelve RULE-* files and six METHOD-* files. Skills are copied into ~/.claude/skills/. The installer also replaces ~/.claude/CLAUDE.md with the packaged guidance (backup first), creates ~/.claude/CLAUDE.local.md only if missing (never overwritten afterward — the place for per-machine rules), updates ~/.claude/settings.json, and installs the aki-update-check.py hook. An older install at ~/.aki/claudedoc is migrated to the new path automatically.
How does akirule decide which rules load, and when?
Three tiers with deliberately high sensitivity (a few wasted tokens beats wrong behavior). Tier 1 core loads on every conversation via @-import: index.md, RULE-agent-behavior.md, RULE-coding.md, RULE-pattern-core.md — these four bypass the router, so they hold even in a session where the skill never runs. Tier 2 contextual is read on signal match: docs, content-write, stack-akiNuxtCf, stack-tauri, ui-pattern, seo, release, db-design, biz. Tier 3 is the analytical METHODs (flow-audit, deep-think, ux-psych, zero-trust-audit, proportionality, subtraction-audit), loaded only when the task genuinely needs them.
Does it auto-update my machine?
No. It is notify-only, never auto-installing. A SessionStart hook compares the installed CHANGELOG against the public copy (at most once per 24h, fail-silent, non-blocking); when there’s a newer version it only prints the changes and the manual update command (git pull && bash install.sh). The Git repo is the source of truth — not an auto-updater, daemon, or package manager.
How do I uninstall AkiDevRule?
Delete: rm -rf ~/.aki/akidevrule; rm -rf ~/.claude/skills/{akirule,akiflow,akithink,akihtmlreport,akihelp,akigitcommit,aki-article-writer,akidevsync-notes,akilint}; rm -f ~/.claude/hooks/aki-update-check.py. Then remove the AkiDevRule block from ~/.claude/CLAUDE.md and its entries (permission, skillOverrides, SessionStart hook) from ~/.claude/settings.json if desired.

One command. The same baseline. The Git repo is the source of truth.

View on GitHub