@event4u/agent-config
v3.1.1
Published
Universal AI Agent OS — audited skills, governance rules, commands, and templates for AI coding tools (Claude Code, Cursor, Windsurf, Copilot).
Maintainers
Readme
Agent Config — Universal AI Agent OS
The Universal AI Agent OS for Founders, Content Creators, Consultants, Sales, Finance, and Engineering teams. Bring your own AI provider.
Six role-shaped entry paths, one shared skills + rules + commands layer that turns any host agent (Claude Code, Augment, Cursor, Copilot, Windsurf) into a reliable team member — without locking you to a single model or vendor.
Cinematic AI video — script → character-locked image → motion+audio prompt → provider render → stitched clip, with
AIV_DRYRUN=trueas the cost-safety default. See/video:from-script.
Pick your profile — six entry paths
agent-config setup writes profile.id to .agent-settings.yml; each
anchor below is the first-screen the wizard sends you to. One README,
six entries, no role-detection guesswork.
| Profile (profile.id) | Audience | First commands | First skills |
|---|---|---|---|
| 👩💻 developer | IC engineer | /implement-ticket · /work · /review-changes · /fix · /commit | developer-like-execution · verify-completion-evidence · minimal-safe-diff · systematic-debugging · test-driven-development |
| ✍️ content_creator | Writers, ghostwriters, marketers | /work · /post-as · /ghostwriter · /optimize-prompt · /video:from-script · /video:storyboard | voice-and-tone-design · messaging-architecture · editorial-calendar · release-comms · character-consistency |
| 🚀 founder | Solo / early-stage founder | /work · /feature · /challenge-me · /council | refine-prompt · rice-prioritization · vision-articulation · fundraising-narrative · runway-cognition |
| 🏛 agency | Multi-client delivery shop | /work · /implement-ticket · /refine-ticket · /feature · /roadmap | doc-coauthoring · decision-record · refine-ticket · estimate-ticket · perf-feedback-craft |
| 💼 finance | CFO / fractional finance / FP&A | /work · /council · /challenge-me | dcf-modeling · forecasting · scenario-modeling · unit-economics-modeling · runway-cognition |
| 🛡 ops | RevOps, support, SRE-adjacent | /work · /threat-model · /review-changes · /fix | incident-commander · dashboard-design · logging-monitoring · threat-modeling · launch-readiness |
Not sure which one? Run npx @event4u/agent-config init then
agent-config setup — the browser wizard asks a single 8-option role
question and maps to the closest profile. Source-of-truth:
packages/core/.agent-src.uncompressed/profiles/ ·
schema: docs/contracts/profile-system.md.
Beyond software: user-types/
(galabau · metalworking · truck — see Beyond software.
Use it in your project
Run from a consumer repo — bootstrap via npx, the agent picks up
your stack, and you ship work end-to-end. New install? Start with the
Quickstart. Already installed? Supported tools
shows the wired AIs; docs/featured-commands.md
lists the end-to-end workflows (/implement-ticket, /work,
/commit, /create-pr). Deeper tour: 2-minute demo.
Prove it
Audit-disciplined by construction — every memory consult, decision
key, and hook concern lands in agents/runtime/state/ so you can replay it.
Core principles names the four invariants;
What agent-config is — and what it isn't
draws the scope boundary.
Contribute
Working on the package itself? Development covers the
task ci pipeline, Requirements the toolchain,
Maintainer telemetry the
opt-in measurement loop. Source-of-truth tree is
packages/core/.agent-src.uncompressed/; never hand-edit .augment/ or .agent-src/.
Quickstart
Three steps. Five minutes. Browser wizard, no YAML by hand.
# 1. Install — wizard auto-launches on first run.
npx -y @event4u/agent-config init
# 2. Pick your profile + tools in the wizard, click Finish.
# (Writes ~/.event4u/agent-config/, ~/.claude/, ~/.cursor/, …)
# 3. First real task — agent refines, plans, verifies.
/work "your first real task"Headless / CI: add --no-ui and pass flags (--profile=developer --tools=claude-code,cursor); add --dry-run to preview writes. Reference: docs/wizard.md.
Pick specific AIs: --tools=claude-code,cursor,augment,windsurf,cline,gemini-cli,copilot,roocode,aider,codex,claude-desktop,continue (any subset). Visual picker: add --gui (loopback-bound, CSRF-gated; contract gui-wizard).
Verify hook coverage: npx @event4u/agent-config hooks:status prints the per-platform matrix (--strict for CI, --format json for tooling).
Scope (v2.5+):
initwrites global only —~/.event4u/agent-config/,~/.claude/,~/.cursor/, …. The project tree getsagents/overrides/+agents/.event4u-bridge.yml.--projectis maintainer-only behindAGENT_CONFIG_DEV_MODE=1(ADR-020, dev-mode).
Migrating from a v1.x install? npx @event4u/agent-config migrate — full notes in docs/migration/v1-to-v2.md.
What agent-config is — and what it isn't
A content layer — skills, rules, commands, guidelines, personas — distributed via npm and projected into every supported AI tool's native config format. It follows the Agent Skills open standard.
It is not an agent runtime. The agent loop, the LLM dispatcher, and tool orchestration stay with the host tool (Claude Code, Augment, Cursor, Cline, Windsurf, Gemini CLI, Copilot). Think of it as a playbook and style guide for those tools — not a replacement.
| In scope | Out of scope |
|---|---|
| Skills, rules, commands, guidelines, personas | Agent loop / LLM dispatcher |
| Multi-tool projection + compression pipeline | Execution engine inside the package |
| Memory helpers (memory-add, memory-promote) | Cross-tool observability dashboard |
| Linters, CI, frontmatter validation against JSON-Schema (contract) | Runtime GUI / web dashboard |
| Skill orchestration via citations + deterministic helpers | Opinionated skill-resolver algorithm |
What your agent is asked to do
| Default behavior | With agent-config | |---|---| | Guess and edit blindly | Analyze code before changing it | | Drift from project conventions | Follow detected stack conventions | | Skip or invent tests | Write tests in the project's framework | | Generic commit messages | Conventional Commits with scope + ticket links | | Skip quality checks | Run the project's quality pipeline and fix reported errors | | Open PRs without context | Structured PR descriptions from Jira / Linear / GitHub | | Claim "done" without proof | Verify with real execution before claiming done |
2-minute demo — /implement-ticket
The flagship command. Drives a ticket end-to-end through a fixed linear flow — and blocks on ambiguity instead of guessing.
/implement-ticket PROJ-123The agent runs this sequence:
refine → memory → analyze → plan → implement → test → verify → report- Refines the ticket if acceptance criteria are vague.
- Queries memory for past decisions, invariants, incidents.
- Plans the change; you confirm before any file is touched.
- Implements under
minimal-safe-diff+scope-control— no drive-by edits. - Tests (targeted first, full suite on success).
- Reviews the diff through four judges (bugs, security, tests, code quality).
- Reports changes, verdicts, follow-ups — then stops.
/commitand/create-prare suggestions, never auto-run.
Any ambiguity halts the flow with numbered options — never a silent guess. Persona comes from .agent-settings.yml (roles.active_role): senior-engineer (default), qa, or advisory (plan-only).
→ Command reference · Flow contract
Sibling — /work (free-form prompt)
Same engine, no ticket required:
/work add a CSV export endpoint to the audit-log controllerThe first pass scores the prompt on five dimensions and routes on the band:
| Band | Score | Action |
|---|---|---|
| high | ≥ 0.8 | Silent proceed — AC + assumptions in the report |
| medium | 0.5–0.79 | Halts with assumptions report; confirm or edit |
| low | < 0.5 | Halts with one clarifying question on the weakest dimension |
After the band gate, the flow is identical to /implement-ticket. Free-form goal → /work; ticket payload → /implement-ticket.
→ Command reference · refine-prompt skill
After the run: agent-config explain last reconstructs the trace (route · memory · council · halts · provider) — read-only, PII-scrubbed, offline. Docs
Product UI track
UI-shaped work routes to one of three directive sets — ui (full audit→design→apply→review→polish→report), ui-trivial (≤ 1 file, ≤ 5 lines: apply→test→report), mixed (backend + UI: contract→ui→stitch). Existing-UI audit is a hard gate (ui-audit-gate); polish has a 2-round ceiling with a11y precedence. Stack detection → blade-livewire-flux / react-shadcn / vue / plain.
→ Mental model (1 page) · Flow contract
Customize
Profiles — how much governance gets loaded
Safety floor (non-destructive defaults · ask-before-guessing · mirror-the-user's-language) ships in every profile. What changes is how much extra coaching gets pulled in.
| Profile | What you get | When to pick it |
|---|---|---|
| minimal | Non-negotiable safety floor only. Cheapest, fastest. | Quick questions · throw-away scripts · CI · tight token budgets |
| balanced (default) | Safety floor + everyday coaching (sensible defaults, review nudges, common pitfalls). | Day-to-day work |
| full | Everything, including long-tail rules normally only maintainers need. | Working on agent-config itself · audits · max-fidelity demos |
Under the hood: kernel-only · kernel + tier-1 · kernel + tier-1 + tier-2. Details: rule-router · kernel-membership · Configure →.
Stability:
STABILITY.mdfor the full matrix. Work Engine (/work+/implement-ticket): beta. Runtime Dispatcher: stable. Tool Adapters: experimental (fullprofile only).
.agent-user.md and Ghostwriter — voice primitives
| Primitive | Voice | Disclosure |
|---|---|---|
| personas/*.md | Review-lens (internal critique) | n/a |
| .agent-user.md (project root, gitignored) | The maintainer's own voice — /post-as:me | None (you are the author) |
| agents/reference/ghostwriter/<slug>.md (gitignored) | Documented public figure — /post-as:ghostwriter | Mandatory, non-removable footer |
Create the user file interactively: /agents user init (schema). Ghostwriter cluster: /ghostwriter:fetch <url-or-name> runs an attestation gate; private individuals rejected; paywalled / leaked / DM content banned at the schema level.
Self-hosted MCP on Cloudflare — zero local install
Skills, commands, rules, and guidelines can be served as an MCP endpoint from your own Cloudflare Worker — any MCP client (Claude Desktop, Claude Code, Cursor, Zed, Continue, hosted agents) talks to it over HTTP. Two auth modes: public (default, OSS read-only deploys) and bearer-auth (operator opt-in, MCP-Token Wrangler secret).
task mcp:cloud:login # one-time, opens browser
task mcp:cloud:setup # check → r2-create → r2-verify → whoami
task mcp:cloud:secret-put # opt in to bearer-auth (recommended for private deploys)→ Operator walkthrough: mcp-cloud-setup · Per-client config: mcp-client-config · Endpoints: mcp-cloud-endpoints.
Scope — Lite, not Full. The Worker serves read-only governance (skills · commands · rules · guidelines · contexts) as MCP prompts and resources, plus small read-only tools (
memory_lookup,chat_history_read,list_*). It does not execute the ~112 Python scripts (linters, audits,task ci, work-engine hooks) — those require local install per Quickstart.
Optional: persistent agent memory
@event4u/agent-memory — MCP-based backend for cross-session learnings. Strictly optional; without it, skills fall back to file-based memory under agents/memory/.
npm install --save-dev @event4u/agent-memory→ Memory contract · Built-in MCP server (experimental)
Supported tools
Project-installed (npx)
| Tool | Rules | Skills | Commands | How it works |
|---|---|---|---|---|
| Claude Code | ✅ | ✅ | ✅ | Reads .claude/ |
| Cursor | ✅ | — | ☑️ | Reads .cursor/rules/ + commands via AGENTS.md |
| Cline | ✅ | — | ☑️ | Reads .clinerules/ + commands via AGENTS.md |
| Windsurf | ✅ | — | ☑️ | Reads .windsurfrules + commands via AGENTS.md |
| Gemini CLI | ✅ | — | ☑️ | Reads GEMINI.md |
| GitHub Copilot | ✅ | — | ☑️ | Reads .github/copilot-instructions.md |
| Roo Code | ✅ | — | ☑️ | Auto-discovers .roo/rules/*.md + AGENTS.md |
| Codex CLI | ✅ | — | ☑️ | Auto-discovers AGENTS.md |
| Continue.dev | ✅ | — | ☑️ | Auto-discovers .continue/rules/*.md + AGENTS.md |
| Aider | 📌 | — | — | Manual read: in .aider.conf.yml |
| Augment (VSCode/IntelliJ) | 📌 | — | — | Global-only; project writes marker |
| Claude Desktop | 📌 | — | — | Global-only |
✅ native ☑️ text reference (in AGENTS.md, not invokable as native slash-command) 📌 marker only — not available
Team reproducibility: every tool you
initis recorded inagents/installed-tools.lock(committed, machine-managed). New team members runnpx @event4u/agent-config syncafter cloning; CI gates drift withagent-config validate. Schema:installed-tools-manifest.
Plugin-installed (optional, global)
| Tool | Install | |---|---| | Augment CLI · Claude Code · Copilot CLI | Install → — rules + skills + commands, marketplace-updated |
Cloud / Hosted-agent surfaces
For platforms where the package's scripts cannot run, artefacts are built for paste-in or upload:
- Linear AI (Codegen, Charlie, …) —
dist/linear/{workspace,team,personal}.md - Claude.ai Web Skills —
dist/cloud/<skill>.zip
Who this is for
Stack-agnostic governance core (orchestration · role modes · command clusters · quality gates · audit-discipline) plus parallel stack-specific skill sets:
| Stack | Coverage |
|---|---|
| Laravel · modern PHP (deepest) | Pest · PHPStan · Rector · ECS · Eloquent · Livewire/Flux · Horizon · Pulse · Reverb · Pennant |
| Symfony | symfony-workflow (DI · Doctrine · Messenger · voters · Twig) + project-analysis |
| Next.js App Router | nextjs-patterns (RSC · Server Actions · caching · route handlers) + UI react-shadcn |
| Zend / Laminas | project-analysis + shared PHP coder/quality skills |
| React · Node / Express | project-analysis + UI react-shadcn |
| Vue · plain HTML | UI directive set (vue / plain) |
| Cross-stack | API design · testing · security · database · Docker · Git · CI · review · threat modeling · observability |
Beyond software
The same orchestration core drives non-software trades via user-types/: galabau-field-crew · metalworking-shop · truck-driver. Contribute your own — 5-minute scaffold.
Data governance & domain safety
Three domain-safety rules (domain-safety-pii, domain-safety-disclaimer, domain-safety-retention) act as per-domain output floors across ~12 areas — PII redaction (support / finance / recruiting / marketing), advice disclaimers (legal / financial / medical / consulting), retention guidance (finance / support), ops floors (logging / export). Full surface → rule → floor matrix: docs/safety.md. Beta contracts: memory-visibility-v1 · decision-trace-v1.
Maintainer telemetry (opt-in, default-off)
Local-only artefact-engagement log. Set telemetry.artifact_engagement.enabled: true in .agent-settings.yml. Records which skills / rules / commands / guidelines the agent consults during /implement-ticket / /work. JSONL under the project root, nothing uploaded. Reports: npx @event4u/agent-config telemetry:report.
Context-aware command suggestion
When a prompt matches a command's purpose ("setze ticket ABC-123 um" → /implement-ticket), the agent surfaces matches as numbered options — nothing auto-executes. Per-conversation off: /command-suggestion-off. Settings: commands.suggestion.{enabled,blocklist,confidence_floor} in .agent-settings.yml.
Core principles
- Analyze before implementing — no guessing, no blind edits
- Verify with real execution — no "should work"
- Challenge to improve — agents are thought partners, not yes-machines
- Strict by design — quality over flexibility
- Zero overhead by default — nothing runs until you ask for it
Documentation
| Document | Content | |---|---| | Getting Started | First run, 3-test experience, profiles, next steps | | Installation | All install paths, Composer/npm, orchestrator details | | Architecture | System layers, content pipeline, tool support matrix | | Customization | Overrides, AGENTS.md, agent settings, cost profiles | | Quality & CI | Linting, CI pipeline, compression system | | Migration | Per-version upgrade steps | | Showcase | More examples & expected behavior |
Browse content: all 129 commands · skills catalog · full catalog · llms.txt.
Development
Working on the package itself? Edit packages/core/.agent-src.uncompressed/, regenerate trees:
task sync # regenerate .agent-src/ and .augment/
task generate-tools # regenerate .claude/, .cursor/, .clinerules/, .windsurfrules
task ci # full pipeline — green before PR
task test # unit + integration tests
task dev:setup # boot the onboarding wizard against the working treeInvoking the CLI from a source checkout: ./agent-config <command> (the maintainer shim at the repo root → scripts/agent-config → dist/cli/agent-config.js). npx @event4u/agent-config doesn't resolve in the source repo without a prior npm link, since there's no node_modules/.bin/agent-config symlink — use ./agent-config instead. Build the TS binary with npm run build:cli if dist/cli/agent-config.js is missing.
→ Full project structure and commands: docs/development.md · CONTRIBUTING.md. Stack: TypeScript CLI/UI + Python 3.10+ build/lint scripts. MCP registry payloads render under dist/mcp/ (submission checklist).
Requirements
- Node ≥ 18 —
npx @event4u/agent-config initis the canonical install path. - Python 3.10+ — bridge stage only; missing → installer skips bridges.
- Platform: macOS 12.3+, Linux, WSL2. Git Bash needs Developer Mode for symlinks; native PowerShell / cmd unsupported. Contributors rebuilding
.augment/also need Task.
License
MIT.
