@event4u/agent-config

@event4u/agent-config

Universal AI Agent OS — governed skills, rules, and commands for AI coding assistants (Claude Code, Augment, Cursor, Copilot, Windsurf). Read-only MCP bridge serves prompts and resources from a release-pinned content bundle.

Category
访问服务器

README

<p align="center"><a href="https://event4u.app"><img alt="event4u Agent Config" src=".github/assets/banner.png"></a></p>

Agent Config — Universal AI Agent OS

Smoke Public install smoke (3 OS × 2 Node) npm

Skills Rules Commands Guidelines Personas Advisors

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=true as 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.

<p align="center"> <a href="CHANGELOG.md">CHANGELOG</a> · <a href="https://github.com/event4u-app/agent-config/releases/latest">Latest release</a> · <a href="https://github.com/event4u-app/agent-config/discussions">Discussions</a> </p>


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.

Install scope. Pick one scope per machine — project-local (default, recommended for application repos) or user-global (recommended for tooling repos / dotfiles). The installer refuses cross-scope drift via the scope_guard pre-flight. Contract: docs/contracts/install-scopes.md. Cleanup when needed: bash scripts/cleanup_other_scope.sh --confirm.

Harness expectations

Three classes of behaviour look like package bugs but are host-harness behaviour the package cannot control — sibling-plugin namespaces (codex:*, cc-gemini-plugin:*), deferred tools surfaced via ToolSearch, and cross-scope skill drift (real bug, fixed in the distribution-channels track). Diagnostics + the package's response: docs/contracts/harness-expectations.md. First step when a skill appears twice: task probe:skills.

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+): init writes global only — ~/.event4u/agent-config/, ~/.claude/, ~/.cursor/, …. The project tree gets agents/overrides/ + agents/.event4u-bridge.yml. --project is maintainer-only behind AGENT_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-123

The 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. /commit and /create-pr are 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 controller

The 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.md for the full matrix. Work Engine (/work + /implement-ticket): beta. Runtime Dispatcher: stable. Tool Adapters: experimental (full profile 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.

Deployment posture

Shape Status Path
Single-user workspace ✅ today npx @event4u/agent-config init — single machine, single user; no remote sync
Small team (3–10 people) ✅ today Shared agents/overrides/ Git repo + shared NAS for knowledge — no code change, no new server. Recipe: docs/deploy/small-team-recipe.md
Organization mode (SSO · central policy · team context · internal connectors) ⏸ not started Each shape gated on a recruited customer + funded audit + maintainer ADR. Posture rationale: docs/deploy/team-deployment-posture.md

The Hard Floor on organization-mode features (SSO, central policy, OAuth connectors, team-context) is preserved by design — they stay cancelled until a real first customer + funded security audit lifts them. The small-team recipe is the supported path in the meantime.

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 init is recorded in agents/installed-tools.lock (committed, machine-managed). New team members run npx @event4u/agent-config sync after cloning; CI gates drift with agent-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 Skillsdist/cloud/<skill>.zip

Install →


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 136 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 tree

Invoking the CLI from a source checkout: ./agent-config <command> (the maintainer shim at the repo root → scripts/agent-configdist/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 ≥ 18npx @event4u/agent-config init is 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.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选