One autonomous operating mind for Claude Code, OpenAI Codex & Antigravity — Turn-1 11-role routing, mockup-before-code UI gates, and habitual skill-first execution.
中文文档 (00_README.md) · Changelog · Quick Start (00_START_HERE.md) · Security Policy
- Stops Skipped Skills & Random Prompting: Every task runs a Turn-1 11-Role + Dual-Axis Subagent Squad gate and a 3-second Skill-First Reflex scan across 26 deterministic auto-routes and 17 auto-deployed first-party skills (164 registered portable skills total).
-
Stops Blind Code-Dumping on Frontend UI: Net-new UI and major refactors are hard-blocked until your agent finishes 1-question-at-a-time requirements grilling
$\rightarrow$ derives an explicit palette/typography/grid spec (ui-ux-pro-max)$\rightarrow$ generates a visual text-to-image mockup for your approval$\rightarrow$ grounds real-world visuals/motion in downloaded references and verifies via side-by-side Design QA (P0/P1/P2). -
One Single Source of Truth Across All 3 Coding Hosts: Compiles into Antigravity (respecting its 24 KB rule limit), Claude Code, OpenAI Codex (plus native
.codex-plugin), and Generic, while syncing project facts inPROJECT_MAP.md,CODE_MAP.md, and.learnings/ERRORS.md.
You don't need to manually wire rules or copy skill folders. Give your coding agent (Antigravity, Claude Code, or OpenAI Codex) this repository and ask:
Copy-Paste Prompt for Your Agent:
Read AGENT_INSTALL.md in this repository, install AgentLogic for my local host non-destructively, and verify with scripts/doctor.ps1.
Note
Safe, Lean & Non-Destructive by Design: The installer backs up existing user rules before updating, injects a compact ~11 KB bounded hook (<!-- BEGIN AGENTLOGIC HOOK --> ... <!-- END AGENTLOGIC HOOK -->) pointing to on-disk reference bundles (never bloating Claude Code, Codex, or Antigravity prompts with 700+ KB dumps, and strictly respecting Antigravity's 24 KB limit), writes only plain-text Markdown/JSON/scripts, and never adds global hooks that hijack unrelated projects.
Manual CLI Install (Windows PowerShell & macOS / Linux Bash + Node.js) + Verification Commands
# 1. Inspect host targets & current layout
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\doctor.ps1
# 2. Install for your host: antigravity | claude | codex | generic
powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1 -TargetHost antigravity
powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1 -TargetHost claude
powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1 -TargetHost codex
# 3. Verify links, 164 skills, 26 routes, 11 roles & compiled bundles
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\maintainer-check.ps1# Install for your host: antigravity | claude | codex | generic
./install.sh --host claude
./install.sh --host codex
./install.sh --host antigravity
# Or invoke the zero-dependency Node.js installer directly on any OS:
node ./scripts/install.js --host claude(Uses pwsh when present and automatically falls back to pure node (scripts/install.js); see INSTALL.md and AGENT_INSTALL.md for custom targets and backup details.)
| Dimension | Vanilla AI (Raw Prompting) | Ad-hoc Skill Users | AgentLogic (V6.9.3) |
|---|---|---|---|
| Skill Dispatch | Relies on ad-hoc prompting; resets every new session | Requires remembering & manually invoking skills | Skill-First Reflex Habit: Turn 1 11-role + Subagent squad router + 26 deterministic auto-routes & 17 auto-deployed first-party skills |
| Blocking Gates | AI often skips planning and dumps boilerplate code | Soft suggestions only; skills can be bypassed |
Hard Blocking Gates: 1-question requirements brief ui-ux-pro-max spec |
| Real-World Visuals & Motion | Hallucinates anatomy/geometry for SVGs & animations | No visual/motion reference enforcement |
Real-World Reference Grounding: Requires real downloaded photos/GIFs/videos (read_file) + Z-depth + ?t= audit before coding SVGs, Canvas, or animations |
| Modern Web & Extensions | Frequently defaults to legacy CSS/JS workarounds | Fragmented or outdated frontend guidance |
GoogleChrome/modern-web-guidance (209 Baseline guides + legacy-scan) & Chrome Extensions MV3 built into auto-routes |
| Cross-Host Parity | Rules diverge across Claude, Codex, and Antigravity | Separate configs per tool |
Single Source of Truth: Compiles to Antigravity, Claude Code, Codex (.codex-plugin), and Generic + PROJECT_MAP.md / CODE_MAP.md sync |
Every installed host receives all 17 first-party skills automatically—no manual /skill naming required:
| Domain | Auto-Triggered Skills | What They Enforce Automatically |
|---|---|---|
| Orchestration & Quality | role-persona-router · product-requirements-grilling · code-simplifier · skill-evaluator |
Turn-1 11-role & dual-axis Subagent squads; 1-question requirements brief; post-impl AST/guard-clause polish; token-budget & link audits |
| UI, Modern Web & Games | ui-ux-pro-max · modern-web-guidance · chrome-extensions · web-data-visualization · web-game-studio |
Palette/typography specs + mandatory text-to-image mockups + side-by-side Design QA; 209 modern web guides; MV3 extensions; charts/maps; Phaser/Three.js games |
| Security, CI & Reversing | appsec-review · gh-pr-ci-triage · decompile-reconstruction · diagram-flowchart-architect |
Diff-scoped STRIDE & tri-state security verdicts; gh CLI CI/PR review triage; clean-room binary/bundle recovery; .drawio / .excalidraw / Mermaid |
| Office, Media & Storytelling | office-pro-suite · multimodal-media-director · novel-story-architect · screenplay-manga-director |
Executive .docx/.xlsx/.pptx/.pdf (tie-out & visual QA); Image/Veo/Remotion/HyperFrames/Music; .story-bible/ novels; manga panels, 0–3s hook short-video & micro-drama production packs |
Rules, blocking gates, and auto-triggered capabilities are organized into a 4-layer progressive abstraction model so every host executes the same deterministic workflow:
flowchart TD
subgraph L1 ["L1: Strategy, Entry & Role Gate (Turn 1 Blocking)"]
Entry["MAIN.md / AGENTS.md / Host Global Rules"] --> Gate1{"Gate 1: Startup & Context Gate"}
Gate1 -->|"Ask forget/compress context"| RoleRouter["role-persona-router (11-Role Orthogonal Matrix + Dual-Axis Subagent Squads)"]
RoleRouter --> Check["00_START_HERE.md & Knowledge Sync (PROJECT_MAP / CODE_MAP)"]
end
subgraph L2 ["L2: Session, SDD & Automatic Task Router (26 Routes)"]
Check --> Router{"Gate 3: Skill-First Reflex -> Auto-Route"}
Router -->|"UI / Frontend Task"| Grilling["product-requirements-grilling (1-Question-at-a-Time Brief)"]
Router -->|"Small Fix / Modernization"| WebMod["web-platform-modernization (modern-web-guidance / legacy-scan)"]
Router -->|"Chrome Extension"| ExtRoute["chrome-extension-development (chrome-extensions MV3)"]
Router -->|"Data Viz / Browser Game"| VizGame["web-data-visualization & web-game-studio"]
Router -->|"Feature / Refactor"| SDD["38_SpecDrivenDevelopment.md (Spec -> Red-Team -> Plan -> Tasks)"]
Router -->|"AppSec / PR CI / Skill Eval / Creative"| DomainDispatch["Zero-Manual-Selection Domain Dispatch"]
end
subgraph L3 ["L3: Design, Reference Grounding & Verification Gates"]
Grilling --> UIProMax["Gate 2: ui-ux-pro-max (Pure Palette / Typography / Grid Spec)"]
UIProMax --> MockupGate["Mandatory Text-to-Image UI Mockup + User Approval Gate"]
MockupGate --> RefGate["Real-World Visual & Motion Reference Grounding + Side-by-Side Design QA"]
RefGate --> UIImpl["modern-web-guidance + Frontend Implementation & Multi-State Visual Audit"]
SDD --> CodeSimp["code-simplifier (Post-Implementation AST & Guard-Clause Polish)"]
CodeSimp --> Verify["29_MandatoryVerificationMatrix.md & SRA Audit"]
end
subgraph L4 ["L4: 17 First-Party Auto-Triggered Skills & 164 Registered Portable Skills"]
UIImpl --> BrowserSkill["modern-web-guidance, chrome-extensions, web-data-visualization & web-game-studio"]
DomainDispatch --> AppSecCI["appsec-review (Diff-Scoped STRIDE), gh-pr-ci-triage & skill-evaluator"]
DomainDispatch --> Decompile["decompile-reconstruction (IDA / Ghidra / jadx / webcrack -> Clean-Room Source)"]
DomainDispatch --> MediaDir["multimodal-media-director (Image / Video / Remotion & HyperFrames / Music)"]
DomainDispatch --> OfficePro["office-pro-suite (Word .docx / Excel .xlsx + Tie-Out / PPT .pptx / PDF Visual QA)"]
DomainDispatch --> NovelArch["novel-story-architect & screenplay-manga-director (Novels / Manga / Short-Video / Screenplays)"]
DomainDispatch --> DiagramArch["diagram-flowchart-architect (.drawio XML / .excalidraw JSON / Themed Mermaid)"]
end
classDef l1 fill:#dbeafe,stroke:#1d4ed8,color:#1e3a8a,stroke-width:2px
classDef l2 fill:#fef3c7,stroke:#b45309,color:#78350f,stroke-width:2px
classDef l3 fill:#fce7f3,stroke:#be185d,color:#831843,stroke-width:2px
classDef l4 fill:#dcfce7,stroke:#15803d,color:#14532d,stroke-width:2px
class Entry,Gate1,RoleRouter,Check l1
class Router,Grilling,WebMod,ExtRoute,VizGame,SDD,DomainDispatch l2
class UIProMax,MockupGate,RefGate,UIImpl,CodeSimp,Verify l3
class BrowserSkill,AppSecCI,Decompile,MediaDir,OfficePro,NovelArch,DiagramArch l4
🔍 Expand Full End-to-End Execution & 26-Route Blocking Gate Flowchart
flowchart TD
Start(["User Request"]) --> ContextCheck["Gate 1a: Context-Reset Check (Continue or Forget/Compress?)"]
ContextCheck --> RoleGate["Gate 1b: role-persona-router (Recommend #1 Lead Role + 11-Role Menu & Dual-Axis Subagent Squads)"]
RoleGate --> SyncCheck["Knowledge Sync (git fetch + AGENTS.md / PROJECT_MAP.md / CODE_MAP.md / .learnings/)"]
SyncCheck --> Classify{"Skill-First Reflex & Deterministic Classification (26 Auto-Routes)"}
%% Frontend Net-New UI Path
Classify -->|"Net-New UI / Substantial Refactor"| ReqGrill["product-requirements-grilling (1 Question at a Time -> requirements-brief.md)"]
ReqGrill --> DesignSpec["ui-ux-pro-max (Industry Palette, Typography, Grid Spec)"]
DesignSpec --> MockupGen["Text-to-Image Mockup (image-generator / multimodal-media-director / nano-banana-pro)"]
MockupGen --> MockupApprove{"User Approved or Explicit Opt-Out?"}
MockupApprove -->|"Revise"| DesignSpec
MockupApprove -->|"Approved"| RefCheck{"Real-World Object or Motion (SVG / Canvas / 3D / Anim)?"}
RefCheck -->|"Real-World Subject"| FetchRef["Inspect Real Photos (Static) & GIFs / Video (Motion Keyframes)"]
RefCheck -->|"Abstract / Fictional"| DirectCreate["Proceed to Creative Composition"]
FetchRef --> WebGuide["modern-web-guidance (Baseline APIs, Fallbacks, CWV, A11y)"]
DirectCreate --> WebGuide
WebGuide --> VisualVerify["Side-by-Side Design QA (P0/P1/P2) & Multi-State ?t= Visual Audit"]
%% Frontend Small Fix & Chrome Extension Paths
Classify -->|"Small Frontend Fix / Legacy Modernization"| WebModRoute["web-platform-modernization (modern-web-guidance / legacy-scan)"]
WebModRoute --> RefCheck
Classify -->|"Chrome Extension (MV3)"| ExtDev["chrome-extension-development (chrome-extensions MV3, CSP Sandbox, Store Checklist)"]
ExtDev --> VisualVerify
%% Engineering & SDD Path
Classify -->|"Feature / Refactor / Multi-File"| SDDGate["SDD Lifecycle (Spec -> Red-Team Gate -> Plan -> Tasks -> Implement)"]
SDDGate --> Simplifier["code-simplifier (Lock Green -> Guard Clauses / ast-grep -> Re-Verify)"]
Simplifier --> FinalVerify["Verification Matrix & Fresh Command Output"]
%% Specialized Domain Auto-Dispatch
Classify -->|"Binary / Bytecode / Obfuscated JS"| Decomp["decompile-reconstruction (IDA / Ghidra / jadx / ilspycmd / pycdc / webcrack)"]
Classify -->|"Word / Excel / PPT / PDF"| Office["office-pro-suite (Tie-Out & Visual QA)"]
Classify -->|"Image / Video / Code Video / Music"| Media["multimodal-media-director (Imagen / Veo / Remotion & HyperFrames / Lyria)"]
Classify -->|"Long-Form Novel"| Novel["novel-story-architect (.story-bible/)"]
Classify -->|"Manga / Short-Video / Screenplay"| Screenplay["screenplay-manga-director (5-Doc Spine, Anchors, Blocking & REV-xxx)"]
Classify -->|"Flowchart / Architecture Diagram"| Diagram["diagram-flowchart-architect"]
Classify -->|"Security Audit / Threat Model"| AppSec["appsec-review (Diff-Scoped Verdicts & STRIDE)"]
Classify -->|"Charts / Dashboards / Maps"| DataViz["web-data-visualization (D3 / Vega / Canvas2D & Dual-Viewport QA)"]
Classify -->|"2D / 3D Browser Game"| WebGame["web-game-studio (Phaser / Three.js / R3F & Playtest)"]
Classify -->|"PR CI Failure / Review Threads"| GHPR["gh-pr-ci-triage (gh CLI Logs & Comment Plan)"]
Classify -->|"Skill Audit / Token Budget"| SkillEval["skill-evaluator (eval-skills.ps1 & Trigger Precision)"]
Decomp --> FinalVerify
Office --> FinalVerify
Media --> FinalVerify
Novel --> FinalVerify
Screenplay --> FinalVerify
Diagram --> FinalVerify
AppSec --> FinalVerify
DataViz --> FinalVerify
WebGame --> FinalVerify
GHPR --> FinalVerify
SkillEval --> FinalVerify
VisualVerify --> FinalVerify
FinalVerify --> MapSync["Update PROJECT_MAP.md / CODE_MAP.md / .learnings/ERRORS.md"]
MapSync --> Done(["Verified Delivery"])
classDef gate fill:#fee2e2,stroke:#b91c1c,color:#7f1d1d,stroke-width:2px
classDef ui fill:#fce7f3,stroke:#be185d,color:#831843,stroke-width:1.5px
classDef eng fill:#dbeafe,stroke:#1d4ed8,color:#1e3a8a,stroke-width:1.5px
classDef domain fill:#dcfce7,stroke:#15803d,color:#14532d,stroke-width:1.5px
class ContextCheck,RoleGate,MockupApprove,RefCheck gate
class ReqGrill,DesignSpec,MockupGen,FetchRef,DirectCreate,WebGuide,WebModRoute,ExtDev,VisualVerify ui
class SDDGate,Simplifier,FinalVerify,MapSync eng
class Decomp,Office,Media,Novel,Screenplay,Diagram,AppSec,DataViz,WebGame,GHPR,SkillEval domain
| Abstraction Layer | Primary Core Responsibility | Included Files / Directories |
|---|---|---|
| L1: Strategy & Entry | Defines entrypoints, Turn 1 context-reset confirmation, autonomous #1 11-role recommendation & dual-axis Subagent squads (role-persona-router), and project-native knowledge sync. |
- 00_START_HERE.md (起手式) - MAIN.md (Stable Host Binding) - AGENTS.md (Agent Entry) - 01_MasterLogic.md (Master Layer Spine) - 15_LogicEntryChecklist.md (Gate Checklist) - 54_V6_9_RoleAndMultimodalCreativeGovernance.md (V6.9 Role & Creative Gates) - role-personas.json (11-Role + Subagent Contract) |
| L2: Session & Loop | Manages the single-turn execution cycle, single-question requirements grilling, SDD lifecycle, and 26-route Skill-First Reflex zero-manual-selection dispatch. | - 03_AgenticLoop.md (Agentic Cycle) - 38_SpecDrivenDevelopment.md (SDD Lifecycle) - 48_V6_8_SkillAndToolRouting.md (Autonomous Skill & Tool Routing) - 53_V6_8_ProgrammingLevelSkillEnforcement.md (Skill Enforcement State Machine) |
| L3: Control & Auditing | Establishes pure UI/UX design-first + mandatory text-to-image mockup gating, side-by-side Design QA, post-implementation code simplification, skill-evaluator / scripts/eval-skills.ps1 auditing, and verification matrices. |
- 29_MandatoryVerificationMatrix.md (Verification Matrix) - 39_TasteFrontendDesign.md (Aesthetic, Spacing & Side-by-Side Design QA Audit) - 30_ToolQuestionBoundaryMatrix.md (Credential Boundary) - 31_ToolMisuseAndAntiPatternMatrix.md (Anti-Pattern Gating) |
| L4: Base & Drivers | 17 first-party auto-deployed domain skills across all hosts (~/.gemini/skills, ~/.claude/skills, ~/.codex/skills), 164 portable skills, 11 role personas (contracts/role-personas.json), Codex plugin bundle, and original UI templates. |
- skills/ (17 First-Party Auto-Triggered Skills + 164 Registered Portable Skills)* role-persona-router (Turn 1 11-Role Recommendation & Dual-Axis Subagent Squads) * product-requirements-grilling (Single-Question Requirements Brief) * ui-ux-pro-max (Pure UI/UX Design Spec + Mandatory Text-to-Image Coupling) * modern-web-guidance (Modern Web Platform APIs, Baseline Compatibility, CWV & legacy-scan)* chrome-extensions (Manifest V3 Browser Extensions & Chrome Web Store Publishing) * web-data-visualization (Truthful Charts, Dashboards, Maps, D3/Vega/Canvas2D & Dual-Viewport QA) * web-game-studio (2D Phaser/Canvas2D & 3D Three.js/R3F Browser Games & Playtest) * multimodal-media-director (Text-to-Image / Video Storyboard / Remotion & HyperFrames / Music Production) * office-pro-suite (Executive Word .docx, Excel .xlsx + Tie-Out, PowerPoint .pptx & PDF .pdf Visual QA)* novel-story-architect ( .story-bible/ Continuity & Anti-AI-Cliché Fiction Engine)* screenplay-manga-director (Manga/Webtoon Panels, 0–3s Hook Short-Video Tables & Film/Animation Screenplays) * diagram-flowchart-architect ( .drawio XML, .excalidraw JSON & Themed Mermaid)* appsec-review (Diff-Scoped AppSec Review, Tri-State Verdicts, STRIDE & Ownership Map) * gh-pr-ci-triage (GitHub Actions CI Failure Logs & PR Review Resolution via gh CLI)* skill-evaluator (Skill Quality, Trigger Precision, Link & Token-Budget Evaluation) * code-simplifier (Auto Post-Implementation Code Refinement & AST Rewrite) * decompile-reconstruction (Auto Decompilation & Clean-Room Source Reconstruction) - templates/frontend/ (Original, unbranded UI starting points) |
This rule package supports automated self-evolution and developer logging:
flowchart LR
A["Unexpected Error / User Correction / Best Practice"] -->|"1. Log to"| B[".learnings/ (LEARNINGS.md & ERRORS.md)"]
B -->|"2. Recurrence >= 3"| C["Promote Systemic Rule into AGENTS.md / CLAUDE.md / CODE_MAP.md"]
Tip
Pure Design + Mandatory Text-to-Image Mockup Gate (ui-ux-pro-max): Net-new UI and substantial UI refactors MUST first complete single-question requirements grilling, derive a pure ui-ux-pro-max visual design specification (industry palette, font pairing, spatial grid), and generate a text-to-image mockup for user approval before any frontend code is written.
templates/frontend/ contains a small, dependency-free set of original, unbranded HTML/CSS starting points: an editorial landing page, an analytics dashboard, and a settings surface. They complement ui-ux-pro-max and Taste governance rather than replacing them: ui-ux-pro-max governs pure visual design specification and mandatory text-to-image mockup synthesis, while the templates provide reusable structural baselines. They contain no third-party images, fonts, logos, remote assets, or copied Open Design code.
During its evolutionary cycles, AgentLogic has integrated concepts and structures from 44 open-source references (42 registered & CI-verified in versions/AgentLogic_V6_9_3.md Section 4 plus 2 foundational architectural inspirations):
| Project Source | GitHub Repository | Primary Concept Integrated |
|---|---|---|
| Linux Kernel Map | makelinux/linux_kernel_map | Inspired the 4-layer structural system layout grid (40_AgentLogicSystemMap.md) |
| Agent Browser | vercel-labs/agent-browser | Provided deterministic ref-based headless browser automation optimized for AI agents |
| Nano Banana Pro | google-gemini/imagen | Supported high-fidelity visual UI mockup generation and layout prototyping for design-first workflows |
| Self-Improvement Agent | peterskoett/self-improving-agent | Enabled structured error logging, user-correction tracking, and recursive pattern hardening |
| Spec Kit | github/spec-kit | Formulated Spec-Driven Development (SDD) code-writing phases and task constraints |
| Taste Skill | Leonxlnx/taste-skill | Outlined physics spring animations, HSL palette controls, and typographical kerning guidelines |
| PM Skills (AI Shipping) | phuryn/pm-skills | Establishes the AI Shipping & Reviewability Audit (SRA) protocol to restore human reviewability |
| Ponytail (Lazy Dev) | DietrichGebert/ponytail | Enforces the 7-rung ladder (YAGNI, reuse, stdlib, native, dependency, one-line, min-code) to cut code bloat |
| Matt Pocock Skills | mattpocock/skills | Integrates interactive grilling, CONTEXT.md vocabulary maps, and Architecture Decision Records (ADRs) |
| Cybersecurity Skills Router | zhaoxuya520/reverse-skill | Outlines malware analysis, APK reversing, frontend JS decryption, and firmware audit routing |
| Grok Build (comparative reference) | xai-org/grok-build | Compares provider-neutral runtime execution, state-preserving compaction, and deny-overrides policies |
| Graphify (external code-map reference) | Graphify-Labs/graphify | Provides an optional queryable project graph and user-approved code-view preview workflow |
| MengTo Skills (workflow comparison) | MengTo/Skills | Informs optional reference-to-interface capture, extraction, and verification workflows without importing external skills |
| OfficeCLI (Office-document workflow comparison) | iOfficeAI/OfficeCLI | Defines a mandatory route for requested Word/Excel/PowerPoint processing once separately trusted and installed; no binary, skill, or runtime is imported |
| PixelRAG (visual-document workflow comparison) | StarTrail-org/PixelRAG | Defines an optional visual-document discovery policy; it does not replace browser or screenshot verification |
| Firecrawl (external-collection workflow comparison) | firecrawl/firecrawl | Defines an optional consent-bound public-web collection policy; no API, SDK, or service is bundled |
| img2threejs (interactive 3D-web workflow comparison) | img2threejs/img2threejs | Defines an optional reference-image-to-procedural-Three.js model route for approved interactive 3D web work; no skill or runtime is bundled |
| Reverse Engineer Anything (REA) | morluto/rea | Informs the automatic decompile-reconstruction clean-room binary/bundle source reconstruction workflow |
| GhidraMCP | LaurieWired/GhidraMCP | Provides the open-source headless binary decompilation MCP benchmark for decompile-reconstruction |
Anthropic Official Claude Plugins (code-simplifier) |
anthropics/claude-plugins-official | Informs the automatic post-implementation code-simplifier complexity reduction and guard-clause refinement pass |
| ast-grep | ast-grep/ast-grep | Provides structural AST search and multi-site refactoring rules inside code-simplifier |
| Superpowers | obra/superpowers | Establishes the test-verified Red-Green-Refactor verification loop for code refinement |
| UI/UX Pro Max Skill | nextlevelbuilder/ui-ux-pro-max-skill | Provides pure UI/UX design-system intelligence (palettes, font pairings, layout grids) coupled with text-to-image mockups |
| Modern Web Guidance | GoogleChrome/modern-web-guidance | Provides 209 modern web platform guides, Baseline compatibility, CWV/a11y rules, legacy-scan, and Chrome Extension MV3 best practices (Apache-2.0) |
| Google Cloud GenMedia Creative Studio | GoogleCloudPlatform/vertex-ai-creative-studio | Informs multimodal Text-to-Image (Imagen), Text-to-Video (Veo), and Text-to-Music (Lyria) orchestration |
| EachLabs Multimodal Skills | eachlabs/skills | Informs cross-model image, video storyboard, and audio generation workflows |
| MiniMax MCP | MiniMax-AI/MiniMax-MCP | Provides Hailuo Video and MiniMax Music MCP generation reference patterns |
| Claude Image Gen | guinacio/claude-image-gen | Informs aspect-ratio, reference-image guidance, and inpainting controls for UI and illustration mockups |
| Anthropic Official Document Skills | anthropics/skills | Establishes executive Word (.docx), dynamic-formula Excel (.xlsx), and action-title PowerPoint (.pptx) standards |
| The Agency (agency-agents) | msitarzewski/agency-agents | Informs the 11 orthogonal specialist role personas in the Turn 1 Autonomous Role Recommendation Gate |
| BMAD-METHOD | bmad-code-org/BMAD-METHOD | Informs multi-role Lead + Supporting Squad orchestration and artifact handoffs |
| Oh-Story ClaudeCode | zenstory-ai/oh-story-claudecode | Informs web-novel pacing, Golden 3-Chapter structure, and anti-AI-cliche prose filtering |
| Story Skills | danjdewhurst/story-skills | Establishes the .story-bible/ continuity compiler and 4-point chapter audit |
| Awesome Novel Studio | MJbae/awesome-novel-studio | Informs the 5-stage macro-to-scene-beat narrative drafting pipeline |
| Draw.io Official MCP & Skill | jgraph/drawio-mcp | Provides native .drawio XML and orthogonal layout rules for enterprise flowcharts |
| Agents365 Draw.io Skill | Agents365-ai/drawio-skill | Informs multi-view architecture, swimlane, and ER schema generation in .drawio |
| Excalidraw Diagram Skill | coleam00/excalidraw-diagram-skill | Informs color-zoned hand-drawn system design diagrams in .excalidraw |
| OpenAI Plugins | openai/plugins | Informs MIT web-data-visualization, skill-evaluator, web-game-studio, Codex .codex-plugin/plugin.json packaging, and clean-room side-by-side Design QA / diff-scoped AppSec patterns |
| OpenAI Skills (Deprecated Upstream) | openai/skills | Provides Apache-2.0 AppSec (security-best-practices / threat-model / ownership-map), GitHub PR/CI (gh-fix-ci / gh-address-comments), and PDF (pdf) workflows |
| Drama Skills | zenstory-ai/drama-skills | Informs 5-doc short-drama episode spine, REF/PLAN branching, and independent REV-xxx cross-shot review with hook protection (MIT) |
| Shuohao Skills | eternityspring/shuohao-skills | Informs single-root character anchor sheets (character-refs) and top-down opening spatial blocking (novel-staging) (Apache-2.0) |
| Muse Video Skill | LuoJiangYong/muse-video-skill | Informs six-role virtual film-crew Subagent squad, asset-ID reference chain, visual_cause art direction, and 6-part video prompt compilation (MIT) |
| ManjuForge | mengxiujie/ManjuForge | Informs serialized comic-drama memory split (identity invariants vs state variables) and Foreshadow Engine tracking (MIT-0) |
| Hand-Drawn Video Prompts | kaomei/hand-drawn-video-prompts | Informs 9:16 vertical hand-drawn/chibi storyboard framing and mobile safe-zone scripting (MIT) |
Important
Repository Gating Warning: This repository is core logic infrastructure, not a generic business workspace. Before modifying rules or running host installations, AI agents MUST anchor to 00_START_HERE.md and complete the mandatory startup logic-entry check.
- Keep it Pure: No business logic or project-specific implementations should be written into
AgentLogicrule files. - Specify Before Writing: For non-trivial features or refactors, compile technical blueprints under
.specify/(spec.md/plan.md) before touching code. - Generate via Bundle: Never edit
dist/bundles manually. Always write updates to version files (e.g.versions/AgentLogic_V6_9_3.md), then runbuild-profile.ps1to rebuild the adapter targets.
Mandatory Version Update & Pitfall Checklist (逻辑版本更新必查红线)
Whenever promoting a version or updating core rules/skills, verify all items below (derived from .learnings/ERRORS.md historical post-mortems):
-
11-File Version & Skill Sync: Synchronize
manifest.json,versions/AgentLogic_<VER>.md,00_START_HERE.md,AGENTS.md,MAIN.md,README.md,00_README.md,AGENT_INSTALL.md,modules/01_MasterLogic.md(L2 + L4 17 first-party skills),modules/11_CrossDirectoryMap.md,modules/40_AgentLogicSystemMap.md,PROJECT_MAP.md,CODE_MAP.md, andCHANGELOG.md. -
CP1252, UTF-8 & POSIX
pwshRedlines: Keep all 27 operational.ps1scripts 100% pure ASCII without BOM (use\uXXXXescapes instead of literal—or CJK text), POSIXpwsh-compatible ([IO.Path]::Combine(...), Corepwshdispatch,$HOMEfallback), passing both Windows and Ubuntu CI; always pass-Encoding UTF8toGet-Content; always write JSON/JS/MD using[System.Text.UTF8Encoding]::new($false)(no BOM, no\u9225CP936 mojibake). -
PowerShell & Antigravity Pitfalls: Never use
$hostas a variable name; never use double-quoted@"..."@for Markdown containing backticks (`fbecomes\x0C); always inline Gates 1–4 in~/.gemini/GEMINI.md(24 KB cap) and register~/.gemini/skills. -
Skill YAML & Defender Defanging: Every
SKILL.mdmust have YAML front-mattername:; security reference docs must defang raw<script>/onerror=strings to prevent Windows Defender false-positive quarantine. -
4-Host Rebuild, Local Sync & Tag Alignment: Run
scripts/maintainer-check.ps1(which automatically executescheck-logic-entry.js,eval-skills.ps1,audit-skill-duplicates.ps1 -FailOnCandidates,build-codex-plugin.ps1,validate-package.ps1includingvalidate-role-personas.ps1default_skillscross-validation, and all 3 regression suites:test-skill-registry,test-skill-workflow-graph,test-skill-enforcement), runinstall.ps1acrossantigravity/claude/codex, and align the Git release tag with the finalmaincommit.
The default core-enhanced profile includes modules/54_V6_9_RoleAndMultimodalCreativeGovernance.md alongside modules/44_V6_8_GrokBuildOperationalIntegration.md, modules/46_V6_8_ProjectKnowledgeSync.md, modules/47_V6_8_ReferenceToInterfaceWorkflow.md, modules/48_V6_8_SkillAndToolRouting.md, modules/49_V6_8_AutonomousSkillEnforcement.md, modules/50_V6_8_ExternalResearchAndArtifactIntegration.md, modules/51_V6_8_AffordanceFirstToolUse.md, modules/52_V6_8_Img2ThreeJs3DWebIntegration.md, and modules/53_V6_8_ProgrammingLevelSkillEnforcement.md (with modules/45_V6_8_GraphifyCodeMapIntegration.md available in governance-reference / optional_modules).
-
Gate 1 (Turn 1 Context & 11-Role + Subagent Squad Gate): Every new project or non-continuation task triggers context-reset confirmation and
role-persona-router(contracts/role-personas.json) to recommend the#1best-fit Lead Role (+ optional Subagent Squad for complex tasks) & present the 11-role selection menu. -
Gate 2 (Pure UI Design + Mandatory Text-to-Image Coupling): Every net-new or substantially refactored UI runs
product-requirements-grilling$\rightarrow$ ui-ux-pro-max$\rightarrow$ multimodal-media-director(image-generator/nano-banana-pro) and pauses for user approval before writing frontend code. -
Gate 3 (Skill-First Reflex
$\rightarrow$ Auto-Use Domain Capabilities): Compiled binaries/bundles triggerdecompile-reconstruction; post-implementation code triggerscode-simplifier; HTML/CSS/DOM/CWV/a11y tasks triggermodern-web-guidance; Manifest V3 browser extensions triggerchrome-extensions;.docx/.xlsx/.pptx/.pdftasks triggeroffice-pro-suite; image/video/Remotion/music tasks triggermultimodal-media-director; fiction prose triggersnovel-story-architect; manga/short-video/screenplay scripts triggerscreenplay-manga-director; flowchart/architecture diagrams triggerdiagram-flowchart-architect; security reviews/threat models triggerappsec-review; charts/dashboards/maps triggerweb-data-visualization; browser games triggerweb-game-studio; GitHub PR/CI triage triggersgh-pr-ci-triage; and skill audits triggerskill-evaluator. -
Project-Native Knowledge Sync: Business projects synchronize operational facts and symbol-level navigation with code through tracked
AGENTS.md,PROJECT_MAP.md,CODE_MAP.md, and.learnings/ERRORS.md. See Project-Native Knowledge Sync, CHANGELOG.md, and Module 53.
- Authorized Security & Clean-Room Research Only: The reverse-engineering, binary triage (
decompile-reconstruction), and security auditing routing rules (skills/reverse-skill/) included in this repository are strictly intended for authorized security assessments, malware defense analysis, CTF competitions, educational research, and lawful clean-room interoperability reconstruction. Users must obtain explicit legal authorization before analyzing any target binary, application, or system. - Third-Party Open-Source Acknowledgments: AgentLogic is a curated meta-governance framework that synthesizes methodologies and portable skill definitions from the open-source community (listed in the External References & Integrated Sources table above). All vendored or adapted skill packages (
spec-kit,taste-skill,agent-browser,reverse-skill,modern-web-guidance, etc.) retain their original open-source licenses (MIT/Apache-2.0) and copyright notices within their respective subdirectories. - No Proprietary Runtime Bundling: This repository contains only plain-text Markdown governance rules, JSON routing contracts, and PowerShell/Node validation scripts. It does not bundle any proprietary commercial CLI binaries or closed-source source code.
