municipal-code-analysis
Skill1 starsChanged 6 months agoApache-2.0View on GitHub
This skill should be used when the user needs to analyze, interpret, cross-reference, or understand municipal code provisions. Triggers include any mention of ordinances, municipal code sections, zoning code, code amendments, code compliance, or when evaluating how a proposed action relates to existing municipal regulations.
In this repository28 other files it gives its agents.
- AGENTS.mdAGENTS.md
- 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
- 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 skill into the rules it gives an agent
27 rules. About 0 are common, 15 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 42
When analyzing code provisions:
- Distinctive: line 54
Always reference the definitions section of the relevant title
- Distinctive: line 56
Look for both title-specific definitions AND general code definitions
- Distinctive: line 97
Must point to specific enabling authority
- Distinctive: line 106
Check if use requires special/conditional use permit
- Distinctive: line 115
Check for internal consistency
- Distinctive: line 116
Verify cross-references remain valid
- Distinctive: line 118
Consider state preemption issues
- Distinctive: line 127
Consider due process requirements
- Very specific: line 155
Use search_municipal_codes with a targeted query to find relevant provisions
- Very specific: line 157
Use get_code_section with the node_id to retrieve full section text
- Very specific: line 161
Use get_code_structure without a node_id to get the top-level table of contents
- Very specific: line 163
Use get_code_structure with the title's node_id to drill into chapters
- Very specific: line 165
Use get_code_section to retrieve the full text
- Very specific: line 168
Use get_municipality_info to verify the municipality is in the Municode system
- Very specific: line 169
If the name doesn't match, use list_municipalities to find the exact name Municode uses
- Very specific: line 170
Use get_municipality_url to provide a direct link for manual verification
- Very specific: line 174
Use titles_only=true to search headings only — faster, useful for finding the right chapter or article
- Distinctive: line 175
Use precise legal terms (e.g., "conditional use permit" rather than "special permission")
- Distinctive: line 177
Search for defined terms (e.g., "as defined in") to find the definitions section
- Very specific: line 183
Search results return snippets, not full text: Always follow up with get_code_section for the complete provision.
- Very specific: line 186
Not all municipalities use Municode: If get_municipality_info returns no results, the municipality may use a different code publisher …
- Very specific: line 190
When the municipal-code connection is not available:
- Distinctive: line 211
When reviewing any action against the code, verify:
- Distinctive: line 220
When producing a code compliance review, use this structure:
- Distinctive: line 324
Don't overstate certainty on legal questions
- Distinctive: line 330
Always verify current code version (codes are frequently amended)
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
Municipal Code Analysis
Overview
Municipal codes are the comprehensive body of local law governing a municipality. They are organized by title, chapter, and section, and include everything from zoning regulations to business licensing to public health requirements.
Code Structure
Most municipal codes follow a hierarchical structure:
- Title: Broad subject area (e.g., Title 19 - Zoning)
- Chapter: Subdivision of title (e.g., Chapter 19.07 - Residential Districts)
- Section: Specific provision (e.g., 19.07.050 - Permitted Uses)
Common title organization:
- General Provisions / Administration
- Elections
- Revenue and Finance
- Business Licenses and Regulations
- Health and Safety
- Animals
- Public Peace, Morals and Welfare
- Vehicles and Traffic
- Streets, Sidewalks and Public Places
- Parks and Recreation
- Public Utilities
- Buildings and Construction
- Subdivision Regulations
- Zoning
Analysis Framework
When analyzing code provisions:
1. Identify the Operative Language
- "Shall" = mandatory requirement
- "May" = permissive/discretionary
- "Should" = advisory (rare in code, more common in plans)
- "Is prohibited" = absolute prohibition
- "Upon finding that..." = conditions precedent
2. Check Definitions
- Always reference the definitions section of the relevant title
- Terms may have specific legal meanings that differ from common usage
- Look for both title-specific definitions AND general code definitions
- Note when terms are undefined (may require interpretation)
3. Cross-Reference Related Provisions
Code sections rarely stand alone. Always check for:
- Sections explicitly referenced in the provision
- Exceptions and exemptions
- General provisions that apply code-wide
- Penalty/enforcement provisions
- Conflict resolution provisions (which section controls when provisions conflict)
- Related state law requirements
4. Consider the Hierarchy of Authority
- Federal Constitution - supreme law
- Federal statutes and regulations - preempt conflicting state/local law
- State Constitution - may grant or limit local authority
- State statutes - often preempt local ordinances on specific topics
- Local charter/constitution (if home rule)
- Local ordinances - municipal code
- Administrative rules/regulations - implement ordinances
5. Check Amendment History
- Recent amendments may signal policy direction
- Pending amendments may affect analysis
- Repealed provisions may be relevant for grandfathered uses
- Effective dates matter for applicability
Home Rule vs. Dillon's Rule
Home Rule Municipalities:
- Broad authority to legislate on local matters
- Can act unless specifically prohibited by state law
- Greater flexibility in code drafting
- May have charter that functions as local constitution
Dillon's Rule (Non-Home Rule):
- Limited to powers expressly granted by state
- Must point to specific enabling authority
- Ambiguities resolved against municipal authority
- More constrained in code drafting
Common Code Analysis Tasks
Zoning Compliance Check
- Identify the zoning district
- Find permitted uses for that district
- Check if use requires special/conditional use permit
- Review dimensional requirements (setbacks, height, FAR)
- Check parking requirements
- Identify any overlay districts
- Review nonconforming use provisions if applicable
Ordinance Amendment Analysis
- Identify all sections being amended
- Compare old and new language (redline)
- Check for internal consistency
- Verify cross-references remain valid
- Assess conflicts with other code sections
- Consider state preemption issues
- Review procedural requirements for adoption
Enforcement Analysis
- Locate violation provisions
- Identify penalty structure
- Check enforcement authority
- Review appeal/hearing procedures
- Assess statute of limitations
- Consider due process requirements
Related Skills
land-use-zoning— zoning code analysis, variance findings, development reviewpublic-finance— levy ordinances, budget-related code provisions, TIF complianceethics-conflicts— local ethics ordinance analysis, prohibited transaction provisionsopen-meetings-foia— OMA compliance requirements codified in local rules
Using Connected Tools
MunicipalMCP Tool Reference
The municipal-code connection provides access to municipal codes via the Municode digital library. Use values from municipal.local.md for municipality_name and state_abbr in all tool calls.
| Tool | Purpose | Key Parameters |
search_municipal_codes | Full-text search of code provisions | municipality_name, state_abbr, search_query, page_size (default 10), titles_only (boolean) |
get_code_section | Retrieve full text of a specific code section | municipality_name, state_abbr, node_id (required) |
get_code_structure | Browse table of contents / navigate code hierarchy | municipality_name, state_abbr, node_id (optional — omit for top-level TOC) |
get_municipality_info | Confirm municipality is in Municode and see available products | municipality_name, state_abbr |
get_municipality_url | Get URL to the municipality's Municode library page | municipality_name, state_abbr |
list_municipalities | List all Municode municipalities in a state | state_abbr |
get_states_info | Get state-level information | state_abbr |
Common Workflows
Search-then-Read (most common pattern):
- Use
search_municipal_codeswith a targeted query to find relevant provisions - Review search result snippets and note the
node_idof relevant sections - Use
get_code_sectionwith thenode_idto retrieve full section text - Repeat for cross-referenced sections
Browse-then-Read (when exploring unfamiliar code areas):
- Use
get_code_structurewithout anode_idto get the top-level table of contents - Identify the relevant title (e.g., "Zoning," "Finance," "Administration")
- Use
get_code_structurewith the title'snode_idto drill into chapters - Continue drilling until you find the target section
- Use
get_code_sectionto retrieve the full text
Validation (confirm municipality availability):
- Use
get_municipality_infoto verify the municipality is in the Municode system - If the name doesn't match, use
list_municipalitiesto find the exact name Municode uses - Use
get_municipality_urlto provide a direct link for manual verification
Search Tips
- Use
titles_only=trueto search headings only — faster, useful for finding the right chapter or article - Use precise legal terms (e.g., "conditional use permit" rather than "special permission")
- Set
page_size=20for broad scans when you need to survey a topic area - Search for defined terms (e.g., "as defined in") to find the definitions section
- Try multiple search terms — municipal codes vary widely in terminology
Common Pitfalls
node_idis required forget_code_section: You cannot retrieve section text without it. Get thenode_idfrom search results orget_code_structure.- Search results return snippets, not full text: Always follow up with
get_code_sectionfor the complete provision. - Municipality name must match Municode's records: "City of Springfield" vs. "Springfield" — if a lookup fails, use
list_municipalitiesto find the exact name. - Codes may not reflect recent amendments: Online codes can lag behind adopted ordinances. Note the "current through" date when citing code provisions.
- Not all municipalities use Municode: If
get_municipality_inforeturns no results, the municipality may use a different code publisher (American Legal, General Code, etc.).
When Tools Are Unavailable
When the municipal-code connection is not available:
- Note the gap explicitly in your analysis
- Work from uploaded code documents, screenshots, or user-provided section text
- Suggest the user verify current code provisions via their municipality's code website
- Cite section numbers based on available information and flag them for verification
Optional and planned connectors (plugin works without these):
document-management(optional/configured when authenticated) — staff reports and supporting materialsagenda-management(planned; not yet implemented in this plugin) — legislation history
Municipal Configuration
Check municipal.local.md for:
- Municipality-specific code provider and URL
- Key code references (zoning, subdivision, etc.)
- Active TIF districts and special districts
- State-specific legal framework
- Local procedural requirements
Procedural Requirements Checklist
When reviewing any action against the code, verify:
- Public hearing requirements
- Notice requirements (mail, posting, publication)
- Voting requirements (simple majority, supermajority)
- Effective date rules
- Recording/filing requirements
Output Template
When producing a code compliance review, use this structure:
# Code Compliance Review: [Subject]
## Summary
[Key compliance findings in 2-3 sentences]
## Subject of Review
[Description of what's being reviewed]
## Source and Confidence Notes
- Code source: [municipal-code / uploaded code excerpt / municipal website / user-provided citation]
- Code currency: [current-through date if available / unknown]
- State reference: [state-reference/XX last_verified YYYY-MM-DD / stale / unavailable]
- Claims requiring verification: [short list of Medium/Low confidence code or legal conclusions]
## Relevant Code Sections
### Primary Sections
| Section | Title | Relevance | Confidence / Provenance |
|---------|-------|-----------|-------------------------|
| [X.XX.XXX] | [Title] | [Why relevant] | [High/Med/Low; source] |
### Supporting Sections
| Section | Title | Relevance | Confidence / Provenance |
|---------|-------|-----------|-------------------------|
| [X.XX.XXX] | [Title] | [Why relevant] | [High/Med/Low; source] |
### Definitions (from [Section])
- **[Term 1]**: [Definition]
- **[Term 2]**: [Definition]
## Compliance Analysis
### Authority
- **Legal basis**: [Code section authorizing action]
- **Limitations**: [Any restrictions on authority]
- **Home rule considerations**: [If applicable]
### Requirements
| Requirement | Code Section | Status | Notes | Confidence / Provenance |
|-------------|--------------|--------|-------|-------------------------|
| [Requirement 1] | [Section] | ✅/❌/⚠️ | [Details] | [High/Med/Low; source] |
| [Requirement 2] | [Section] | ✅/❌/⚠️ | [Details] | [High/Med/Low; source] |
### Procedural Requirements
- [ ] [Requirement 1] - [Section reference]
- [ ] [Requirement 2] - [Section reference]
## Issues Identified
### Conflicts
| Issue | Sections | Description | Resolution |
|-------|----------|-------------|------------|
| [Issue 1] | [X] vs [Y] | [Description] | [How to resolve] |
### Gaps
- [Gap 1]: [Description]
### Ambiguities
- [Section X]: [Ambiguity description]
## Cross-Reference Check
### References Updated
| Section | Reference | Status |
|---------|-----------|--------|
| [X.XX] | [What it references] | ✅/Needs update |
### Impacted Sections
| Section | Impact | Action Needed |
|---------|--------|---------------|
| [X.XX] | [How affected] | [Update needed] |
## Compliance Determination
**Overall Status**: [Compliant / Non-Compliant / Requires Modification] *(Confidence: [High/Medium/Low]; provenance: [source])*
**Conditions for Compliance**:
1. [Condition 1]
2. [Condition 2]
## Recommendations
### Required Actions
- [Action 1]
### Suggested Improvements
- [Suggestion 1]
## Caveats
- This analysis is based on [code version/date]
- Complex legal questions should be referred to the municipal attorneyQuality Standards
- Cite specific section numbers
- Quote operative language when important
- Include confidence and provenance for authority, conflict, compliance, and procedural conclusions
- Note version/date of code reviewed
- Identify ambiguities honestly
- Flag items requiring attorney review
- Don't overstate certainty on legal questions
Important Caveats
- Code analysis supports policy deliberation but does not constitute legal advice
- Complex legal questions should be referred to the municipal attorney
- Always verify current code version (codes are frequently amended)
- Online codes may have lag time from recent amendments
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.

