municipal-governance
AGENTS.md1 starsChanged 6 months agoApache-2.0View on GitHub
This file provides guidance to Codex (Codex.ai/code) when working with code in this repository. This is a Codex AI plugin (municipal-governance, v0.6.0) for local government officials and staff, designed to work for any US municipality. Built by Dustin Good, sitting Elgin Illinois Councilmember and creator of CivicAide, PolicyAide, and CivicWork.Ai. It provides automated workflows for ordinance analysis, meeting preparation, policy research, budget review, constituent communications, agenda synthesis, intergovernmental scanning, vendor evaluation, meeting close-out, PolicyAide sync, skill quality review, and watcher…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,638 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository28 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agenda-synthesisSkill
- agenda-watcherSkill
- analyze-ordinanceSkill
- budget-reviewSkill
- constituent-responseSkill
- council-communicationSkill
- council-follow-up-trackerSkill
- ethics-conflictsSkill
- grant-radarSkill
- intergovernmental-relationsSkill
- intergovernmental-scanSkill
- land-use-zoningSkill
- meeting-close-outSkill
- meeting-prepSkill
- municipal-code-analysisSkill
- open-meetings-foiaSkill
- parliamentary-procedureSkill
- policy-evaluationSkill
- policy-researchSkill
- public-financeSkill
- skill-qaSkill
- statehouse-monitorSkill
- sync-to-policyaideSkill
- vendor-alternativesSkill
- vendor-assessmentSkill
- vendor-evaluateSkill
- vendor-renewal-watcherSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
16 rules. About 0 are common, 7 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 132
Follow the existing pattern in skills/your-skill-name/SKILL.md:
- Distinctive: line 135
Start with a Scoping step — brief questions to focus depth and identify what the user needs
- Very specific: line 141
Add ## Skills Referenced listing primary and secondary skills
- Very specific: line 142
Add ## Related Skills pointing to complementary skills
- Very specific: line 143
Add ## Notes with edge cases and graceful degradation
- Distinctive: line 144
Update README.md command table
- Very specific: line 148
Create a new directory under /skills/ with a SKILL.md file containing:
- Distinctive: line 161
Update README.md skills table
- Distinctive: line 165
All command outputs follow consistent patterns:
- Very specific: line 220
Every skill has a ## Related Skills section referencing 2-4 related skills
- Very specific: line 221
Every command has ## Skills Referenced (primary + secondary skills) and ## Related Skills
- Distinctive: line 247
Check freshness metadata when present
- Distinctive: line 248
If no state reference exists, note the limitation and recommend verification with legal counsel
- Distinctive: line 249
If the state reference is stale, use it as background only and recommend verification against current statutes or qualified legal counsel …
- Very specific: line 271
When a plugin with .mcp.json entries is uploaded to Claude Desktop / Cowork, those entries can be written to multiple places:
- Very specific: line 277
If the project .mcp.json is later cleaned, the uploaded copies and global config are not updated automatically.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
This file provides guidance to Codex (Codex.ai/code) when working with code in this repository.
Project Overview
This is a Codex AI plugin (municipal-governance, v0.6.0) for local government officials and staff, designed to work for any US municipality. Built by Dustin Good, sitting Elgin Illinois Councilmember and creator of CivicAide, PolicyAide, and CivicWork.Ai.
It provides automated workflows for ordinance analysis, meeting preparation, policy research, budget review, constituent communications, agenda synthesis, intergovernmental scanning, vendor evaluation, meeting close-out, PolicyAide sync, skill quality review, and watcher workflows for agendas, statehouse activity, vendor renewals, grants, and council follow-ups.
Key characteristic: This is a prompt/workflow-based plugin using Markdown and JSON configuration — not compiled code. There are no build steps, tests, or linting tools.
Architecture
.
├── agents/ # 3 utility agents (setup-municipality, setup-project, setup-official)
├── skills/ # 27 skills: 16 workflow commands + 11 domain expertise modules
├── templates/ # Starter watcher memory templates for project workspaces
├── state-references/ # State-specific statutory requirements (IL.md, etc.)
├── hooks/ # Event hooks (SessionStart config check)
├── scripts/ # Hook scripts (check-config.sh)
├── .claude-plugin/ # Plugin metadata (plugin.json v0.6.0)
├── .claude/ # Local Claude settings (enabled MCP servers)
├── .mcp.example.json # MCP connector template; .mcp.json is ignored local config
├── municipal.local.example.md # Tracked generic municipality configuration template
├── municipal.local.md # Ignored local municipality configuration — created by Customize/setup
├── official.local.md # Ignored elected official's personal profile — created by setup-official agent
├── README.md # User documentation with installation + quick start
└── CivicWorkPluginReference.md # Developer referenceDesign
Agents (/agents/): Utility agents that run as Codex subprocesses in Cowork with file editing access:
setup-municipality— Interactive configuration wizard that walks users through customizingmunicipal.local.md(primarily for Codex CLI users; Cowork users can use the native "Customize plugin settings" instead)setup-official— Captures the elected official's personal profile (platform, priorities, campaign positions) via auto-discovery + interview, plus auto-discovers standing documents (strategic plan, comprehensive plan, budget). Writesofficial.local.mdandstanding-documents.md.setup-project— Scaffolds a Cowork Project workspace folder with the right directory structure, starter watcher memory files, and a project-level AGENTS.md, enabling persistent memory across sessions
Skills (/skills/*/SKILL.md) form two tiers of domain expertise, all in the same directory format:
- Workflow Skills (16): User-facing workflows invoked via
/municipal-governance:*. Each workflow skill:- Scopes the work first — brief questions to focus depth and identify what the user actually needs (see "Scope" step)
- Loads
municipal.local.mdconfiguration - References specific domain skills via
## Skills Referencedsection - Produces structured Markdown output with three-tier attention indicators (🔴/🟡/🟢), confidence tags, and provenance tags on key claims
- Supports depth modes (e.g., quick scan vs. comprehensive) — set during scoping
- Lists
## Related Skillsfor discoverability - Includes "omit if N/A" guidance on longer output templates
- Domain Skills (11): Knowledge modules that workflow skills draw on, containing:
- YAML frontmatter with
description(triggers automatic activation) - Frameworks, methodologies, analysis techniques
## Related Skillscross-references to other skills## Using Connected Toolswith active tools and clearly marked planned connectors## Municipal Configurationlisting relevantmunicipal.local.mdfields- Three domain skills include structured output templates:
policy-evaluation,public-finance,municipal-code-analysis
- YAML frontmatter with
Workflow Skills (16)
| Skill | Purpose |
analyze-ordinance | Review ordinances against municipal code |
meeting-prep | Comprehensive meeting briefings |
policy-research | Multi-source policy research |
agenda-synthesis | Quick agenda packet summaries |
constituent-response | Draft constituent communications |
budget-review | Fiscal impact and budget analysis |
intergovernmental-scan | State/federal policy monitoring |
vendor-evaluate | Analyze vendor contracts and assess alternatives |
sync-to-policyaide | Sync profile, municipality context, and standing docs to PolicyAide |
meeting-close-out | Capture meeting outcomes, votes, follow-ups, and briefing-book updates |
skill-qa | Review skills for provenance, analysis boundaries, freshness, and connector safety |
agenda-watcher | Monitor agenda postings, packets, addenda, and agenda changes |
statehouse-monitor | Track legislative, agency, mandate, preemption, and funding developments |
vendor-renewal-watcher | Watch vendor renewal windows, auto-renewals, escalation, and data-export deadlines |
grant-radar | Monitor grant opportunities, NOFOs, deadlines, eligibility, and strategic fit |
council-follow-up-tracker | Track staff directives, deferred items, promised reports, and open follow-ups |
Domain Skills (11)
| Skill | Purpose |
municipal-code-analysis | Code interpretation, cross-referencing, hierarchy of authority |
parliamentary-procedure | Robert's Rules, motions, voting procedures |
land-use-zoning | Zoning, variances, form-based codes, inclusionary zoning, TIF |
public-finance | Fund accounting, budgets, debt, pension/OPEB, CIP, fiscal impact |
intergovernmental-relations | Home rule, preemption, grants, regional cooperation |
policy-evaluation | Bardach framework, logic models, stakeholder analysis, decision matrices |
open-meetings-foia | OMA compliance, FOIA, virtual meetings, records retention, social media |
council-communication | Staff reports, ordinances, resolutions, minutes, amendment conventions |
ethics-conflicts | Conflict of interest, recusal, gift restrictions, financial disclosure |
vendor-assessment | Vendor lock-in, build-vs-buy, technical decomposition, procurement |
vendor-alternatives | Municipal software alternatives knowledge base, replacement tiers, open-source landscape |
Data Flow
User command/watch run → Scope the work (brief user questions) → Load municipal.local.md → Load state reference (state-references/{state}.md) → Retrieve documents (upload or MCP) → Reference skills → Structured Markdown output with confidence/provenance indicatorsMCP Server Connections
Configured locally in ignored .mcp.json, with .mcp.example.json as the tracked template. Optional connectors:
municipal-code— Municode lookup via MunicipalMCP. The command path is machine-specific and must be updated per-installation.document-management— Box HTTP MCP endpoint (https://mcp.box.com) for agenda packets, staff reports, FOIA records, and standing documents when the user's Box access/authentication is available. Treat as optional/experimental and provide uploaded-document fallback.
Planned (referenced in skills as "Planned connectors" — plugin works without these):
agenda-management— legislation tracking, meeting schedulescommunication— team messagingproject-tracking— action item tracking
Hooks
Defined in hooks/hooks.json. The plugin uses event hooks for automated checks:
- SessionStart —
scripts/check-config.shruns at the start of every session. Checks three things:- Does
municipal.local.mdexist? If not → prompts user to configure - Is the state field populated? If not → warns
- Does a state reference exist for the configured state? If not → warns that compliance guidance will be general only
- Does
The hook is silent on the happy path (configured municipality with state reference available).
Working with This Codebase
Configuration Is Central
All workflows depend on municipal.local.md being customized with municipality-specific information. municipal.local.example.md is the tracked generic template; Cowork's "Customize plugin settings" flow or the setup-municipality agent creates the ignored local municipal.local.md file. The template includes sections for: municipality basics, council structure, code references, agenda management, TIF districts, budget context, fiscal impact thresholds, policy priorities, ethics/disclosure rules, contacts, committees, procedural notes, and regional context.
Adding New Workflow Skills
Follow the existing pattern in skills/your-skill-name/SKILL.md:
- Define trigger and description
- Specify required inputs
- Start with a Scoping step — brief questions to focus depth and identify what the user needs
- Load Municipal Context step (load
municipal.local.md) - Document step-by-step workflow
- Include structured output template (with "omit if N/A" guidance for optional sections)
- Include Analysis Boundaries section in output template if the skill produces analysis someone might act on (see "Single-Instance Disclosure" above)
- Include confidence/provenance expectations for decision-relevant claims
- Add
## Skills Referencedlisting primary and secondary skills - Add
## Related Skillspointing to complementary skills - Add
## Noteswith edge cases and graceful degradation - Update README.md command table
Adding New Skills
Create a new directory under /skills/ with a SKILL.md file containing:
- YAML frontmatter with
description(tells Codex when to activate) - Overview and purpose
- Conceptual framework / methodology
- Analysis techniques with step-by-step procedures
- Source, confidence, and provenance rules for decision-relevant claims
- Output template (for skills producing formal analyses)
- Quality standards and common pitfalls
## Related Skillscross-referencing 2-4 related skills## Using Connected Tools(active tools + "Planned connectors" section)## Municipal Configurationlisting relevantmunicipal.local.mdfields- State-reference freshness guidance when the skill touches law or compliance
- Caveats and limitations
- Update README.md skills table
Output Conventions
All command outputs follow consistent patterns:
- Executive summary at top
- Three-tier attention indicators: 🔴 (needs close review) / 🟡 (standard review) / 🟢 (consent/routine)
- Tables for comparisons
- Legal disclaimers where appropriate
- "Next Steps" or "Recommended Actions" section
- Omit sections where data is unavailable rather than generating boilerplate
Confidence and Provenance Indicators
Key substantive claims in command output should include confidence and provenance so the user knows both how sure the analysis is and where the claim came from.
- High — directly sourced from a provided document, municipal code lookup, or official record. Example: "Fiscal impact: $2.3M one-time (High — staff report p.3)"
- Medium — inferred from partial information, based on typical patterns, or sourced from web search. Example: "May conflict with Title 19.07 (Medium — based on title text, no ordinance draft provided)"
- Low — based on general knowledge, analogies to other municipalities, or incomplete data. Example: "Implementation likely requires 2-3 FTEs (Low — estimate based on peer city experience, no local staffing data)"
Provenance answers "where did this come from?" Use concise source tags such as:
[staff report p.4][municipal-code][state-reference/IL][official site][web - verify][model inference]
Confidence/provenance tags appear inline after the claim, in parentheses. Keep them brief. Don't tag every sentence — tag key facts that inform decisions: fiscal figures, legal conclusions, code conflict assessments, procedural requirements, and implementation estimates. Routine descriptive content (item titles, meeting dates, procedural steps) doesn't need tagging.
Example: "Fiscal impact: $2.3M one-time (High; provenance: staff report p.3)."
Single-Instance Disclosure (Verification Line)
This plugin runs as a single AI instance — one model, one pass, one perspective. That's appropriate for many tasks (information gathering, document synthesis, procedural guidance) but insufficient for high-stakes policy decisions.
Commands must include a verification disclosure when their output approaches the boundary of what a single instance can responsibly provide. The disclosure:
- Acknowledges the limitation — this analysis was not adversarially tested, independently verified, or produced through multi-perspective deliberation
- Identifies what specifically needs deeper treatment — not a generic warning, but a list of the specific claims, conclusions, or recommendations that would benefit from further verification
- Points to the next level — PolicyAide's multi-agent deliberation framework, attorney review, staff analysis, or other appropriate escalation
When to include the disclosure:
- Policy research in Decision-focused or Comprehensive mode
- Ordinance analysis classified as 🟡 SIGNIFICANT or 🔴 CRITICAL
- Meeting prep items flagged 🔴 that involve code amendments, significant fiscal impact, or legal risk
- Any output that includes a recommendation the user might act on directly
When it's not needed:
- Quick scans and exploratory research (informational, not decision-driving)
- Agenda synthesis (summary, not analysis)
- Constituent responses (communication, not policy)
- Factual lookups (what does the code say about X)
The disclosure is not a liability disclaimer — it's a design principle. The plugin knows its own limits and says so. This is what responsible AI deployment looks like in government.
Cross-References
- Every skill has a
## Related Skillssection referencing 2-4 related skills - Every command has
## Skills Referenced(primary + secondary skills) and## Related Skills - Maintain these when adding or modifying skills/commands
- See
CivicWorkPluginReference.mdfor the full command → skill mapping table
State-Specific Content — Two-Layer Architecture
Skills provide state-agnostic frameworks (analytical workflows, professional standards, output templates). State-specific statutory requirements live in state-references/.
Layer 1: Skills (frameworks) — How to analyze. Same for all states.
Layer 2: State references — What the law says. Unique per state.
Layer 3: municipal.local.md — Municipality-specific config. Unique per deployment.State reference documents (state-references/{STATE}.md) contain:
- Freshness metadata (
last_verified,freshness_window_days,verified_against) - Statutory citations with section numbers
- Deadlines, thresholds, and penalties
- Procedural requirements
- Common compliance failures
- Institutional resources (state league, comptroller, etc.)
- Preemption landscape
When providing compliance guidance, domain skills must:
- Load the state reference for the user's state (from
municipal.local.md) - Apply all statutory requirements, deadlines, and thresholds from the state reference
- Check freshness metadata when present
- If no state reference exists, note the limitation and recommend verification with legal counsel
- If the state reference is stale, use it as background only and recommend verification against current statutes or qualified legal counsel before relying on it
Currently available: state-references/IL.md (Illinois). Additional states can be contributed by following the IL.md structure as a template.
What goes where:
- Statute, deadline, threshold, penalty → state reference
- Framework, methodology, output template → skill file
- Council structure, contacts, fiscal context →
municipal.local.md
Known Pitfalls
plugin.json author field must be an object
Claude Desktop / Cowork plugin validation expects the author field to be an object with a name property. A plain string can fail validation and break plugin management.
"author": "CivicWork" // WRONG — breaks the Plugins page
"author": { "name": "CivicWork" } // CORRECTMCP placeholder entries propagate and persist
When a plugin with .mcp.json entries is uploaded to Claude Desktop / Cowork, those entries can be written to multiple places:
- The global Claude Desktop config (
~/Library/Application Support/Claude/claude_desktop_config.json) — prefixed asmunicipal-governance:<name> - The marketplace copy inside
local-agent-mode-sessions/.../cowork_plugins/marketplaces/local-desktop-app-uploads/municipal-governance/.mcp.json - The cache copy inside
local-agent-mode-sessions/.../cowork_plugins/cache/local-desktop-app-uploads/municipal-governance/<version>/.mcp.json
If the project .mcp.json is later cleaned, the uploaded copies and global config are not updated automatically. Stale entries can cause persistent error banners in the host app. To fully remove them, all three locations must be cleaned manually.
.mcp.json is local and machine-specific
The tracked .mcp.example.json shows the optional municipal-code and document-management connector shape. Each deployment should copy it to ignored .mcp.json and update local MunicipalMCP paths and authentication-dependent connectors. Other connector categories are referenced in skills as planned integrations but are not yet wired — the plugin works without them.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

