sync-to-policyaide
Skill1 starsChanged 6 months agoApache-2.0View on GitHub
Sync official profile, municipality context, and standing document summaries to PolicyAide for personalized multi-agent research. Use when the official wants to connect their CivicWork Plugin data with the PolicyAide research platform.
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
- municipal-code-analysisSkill
- open-meetings-foiaSkill
- parliamentary-procedureSkill
- policy-evaluationSkill
- policy-researchSkill
- public-financeSkill
- skill-qaSkill
- statehouse-monitorSkill
- 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
17 rules. About 0 are common, 8 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
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
- Distinctive: line 24
Keep government-role context separate from campaign or electioneering material
- Distinctive: line 25
Ask for explicit user confirmation before POSTing
- Very specific: line 33
Read municipal.local.md and official.local.md (if it exists).
- Very specific: line 35
If official.local.md doesn't exist or has bracket placeholders for name/role:
- Very specific: line 42
Read official.local.md and check the PolicyAide Link section:
- Very specific: line 43
If Link Token has a value (not [not yet linked]), proceed to Step 4.
- Distinctive: line 44
If not linked, proceed to Step 3.
- Distinctive: line 57
When the user provides the code:
- Very specific: line 62
Use web_fetch to POST to https://app.civicwork.ai/api/plugin/link:
- Very specific: line 69
If successful (response contains pluginToken):
- Very specific: line 71
Update Link Token, Linked At, and PolicyAide User ID fields
- Distinctive: line 160
Ask for explicit confirmation:
- Distinctive: line 163
If the user does not confirm, stop and keep the payload local.
- Very specific: line 165
If the user confirms, use web_fetch to POST to https://app.civicwork.ai/api/plugin/handoff:
- Very specific: line 201
If official.local.md doesn't exist, only municipality context (from municipal.local.md) is synced
- Distinctive: line 203
Treat synced official-profile and municipal-context material as potentially public-record-adjacent.
- Distinctive: line 204
Never sync or link without explicit user confirmation in the current session
≈ “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
Sync to PolicyAide
Syncs your official profile, municipality context, and standing document summaries from the CivicWork Plugin to PolicyAide (app.civicwork.ai). This enables personalized, context-rich multi-agent research that understands your city, your priorities, and your key governance documents.
Trigger
/municipal-governance:sync-to-policyaide
Prerequisites
municipal.local.mdmust be configured (runsetup-municipalityfirst)official.local.mdshould be configured (runsetup-officialfirst, or this skill will sync municipality data only)
Privacy and Confirmation Rules
PolicyAide sync sends local profile and municipal context outside the workspace. Before any link or sync request leaves the machine:
- Explain exactly what endpoint will receive data
- Show a concise summary of the payload fields to be sent
- Omit bracket placeholders, private constituent details, staff-only notes, privileged information, and documents the user has not approved for sync
- Keep government-role context separate from campaign or electioneering material
- Ask for explicit user confirmation before POSTing
campaignPlatform may include public campaign positions if the user confirms they want that context included. Do not sync campaign strategy, donor/voter data, persuasion plans, or election operations.
Workflow
Step 1: Check Configuration
Read municipal.local.md and official.local.md (if it exists). Verify that at minimum, municipality name and state are populated.
If official.local.md doesn't exist or has bracket placeholders for name/role:
"I notice you haven't set up your official profile yet. Would you like to run that first? It captures your priorities and platform, which makes PolicyAide research more personalized.
(You can also sync just your municipality data now and add the personal profile later.)"
Step 2: Check Link Status
Read official.local.md and check the PolicyAide Link section:
- If Link Token has a value (not
[not yet linked]), proceed to Step 4. - If not linked, proceed to Step 3.
Step 3: Link to PolicyAide
Guide the user through the one-time linking process:
"To sync with PolicyAide, we need to link your plugin to your PolicyAide account. This is a one-time setup:
- Go to app.civicwork.ai/dashboard
- Find the Plugin Link card
- Click Generate Link Code — you'll get a 6-character code
- Tell me the code and I'll complete the link"
When the user provides the code:
- Confirm that the user wants to send the link code to PolicyAide:
"I'll send this one-time link code to
https://app.civicwork.ai/api/plugin/linkto connect this plugin to your PolicyAide account. No profile or municipal context is sent in this step. Should I proceed?" - Use
web_fetchto POST tohttps://app.civicwork.ai/api/plugin/link:Method: POST Headers: Content-Type: application/json Body: { "linkCode": "[USER'S CODE]" } - If successful (response contains
pluginToken):- Store the
pluginTokeninofficial.local.mdunder PolicyAide Link section - Update
Link Token,Linked At, andPolicyAide User IDfields - Confirm: "Plugin linked successfully! Your data will now sync with PolicyAide."
- Store the
- If failed:
- Code expired: "That code has expired. Please generate a new one on your dashboard."
- Invalid code: "That code wasn't recognized. Please double-check and try again."
- Already used: "That code has already been used. Generate a new one if needed."
Step 4: Build Sync Payload
Assemble the data to sync from local files.
Data minimization rules:
- Omit fields that still contain bracket placeholders
- Omit private constituent case details, staff-only notes, privileged legal material, and confidential records
- Include
campaignPlatformonly when it reflects public campaign positions and the user explicitly approves including it - Send standing document summaries and references, not full documents, unless a future workflow asks for full-document sync and gets separate confirmation
Profile Sync payload (from official.local.md + municipal.local.md):
{
"handoffType": "profile_sync",
"pluginVersion": "0.6.0",
"payload": {
"officialProfile": {
"name": "[from official.local.md]",
"role": "[from official.local.md]",
"email": "[from official.local.md]",
"yearsInOffice": "[from official.local.md]",
"termEnd": "[from official.local.md]",
"campaignPlatform": "[from official.local.md]",
"policyPriorities": ["[from official.local.md]"],
"pastPolicyWork": "[from official.local.md]",
"preferredTone": "[from official.local.md]",
"primaryAudience": "[from official.local.md]"
},
"municipalContext": {
"name": "[from municipal.local.md Municipality > Name]",
"state": "[from municipal.local.md Municipality > State, as 2-letter code]",
"population": "[from municipal.local.md Municipality > Population]",
"homeRule": "[from municipal.local.md Municipality > Home Rule, as boolean]",
"governmentType": "[from municipal.local.md Municipality > Government Type]",
"governingBodySize": "[count from Council Structure > Members table]",
"meetingSchedule": "[from municipal.local.md Council Structure > Meeting Schedule]",
"fiscalYear": "[from municipal.local.md Budget Context > Fiscal Year]",
"generalFundSize": "[from municipal.local.md Budget Context > General Fund Size]",
"policyPriorities": ["[from municipal.local.md Policy Priorities list]"]
}
},
"municipalityContext": {
"name": "[municipality name]",
"state": "[state code]"
}
}Standing Documents payload (if standing-documents.md exists in workspace or plugin directory):
{
"handoffType": "standing_docs",
"pluginVersion": "0.6.0",
"payload": {
"documents": [
{
"type": "strategic_plan",
"title": "[from standing-documents.md]",
"url": "[from standing-documents.md]",
"discoveredAt": "[from standing-documents.md]",
"keyGoals": ["[from standing-documents.md]"],
"summary": "[from standing-documents.md]",
"relevanceToCurrentPriorities": "[from standing-documents.md]"
}
]
}
}Step 5: Send Sync
For each payload (profile_sync, then standing_docs if available):
- Show a concise payload summary before sending:
- Endpoint:
https://app.civicwork.ai/api/plugin/handoff - Handoff types: [profile_sync / standing_docs]
- Official fields included: [list]
- Municipality fields included: [list]
- Standing documents included: [titles only]
- Sensitive fields excluded: [list]
- Endpoint:
- Ask for explicit confirmation:
"Do you want me to send this payload to PolicyAide now?"
- If the user does not confirm, stop and keep the payload local.
- If the user confirms, use
web_fetchto POST tohttps://app.civicwork.ai/api/plugin/handoff:Method: POST Headers: Content-Type: application/json X-Plugin-Token: [stored token from official.local.md] Body: [payload from Step 4] - Check response:
- Success: Note the
handoffIdfor status tracking - Failure: Report error and suggest retry
- Success: Note the
Step 6: Report Results
Summarize what was synced:
"Sync complete! Here's what was sent to PolicyAide:
Profile Data:
- Official: [name], [role]
- Municipality: [city], [state] (pop. [population])
- Priorities: [list top 3]
- Platform: [summary snippet]
Standing Documents: [list synced docs or "none — run setup-official to discover these"]
What this means: PolicyAide research sessions will now include your municipal context, priorities, and standing document references automatically. When you escalate a policy topic from the plugin, it'll skip expensive web searches and use this pre-loaded context instead.
Run this again anytime your profile or priorities change."
Notes
- The plugin token is stored locally in
official.local.md— it never leaves your machine except in API headers - Standing documents are sent as summaries, not full documents
- PolicyAide respects the
useForAiRecommendationsprivacy setting — if disabled in PolicyAide, profile data won't be used for AI personalization even if synced - If
official.local.mddoesn't exist, only municipality context (frommunicipal.local.md) is synced - Omit any fields that still have bracket placeholders — don't send placeholder text
- Treat synced official-profile and municipal-context material as potentially public-record-adjacent. Do not include confidential constituent casework, privileged legal advice, closed-session material, or campaign operations.
- Never sync or link without explicit user confirmation in the current session
Skills Referenced
policy-evaluation— structures context for downstream policy research and deliberationopen-meetings-foia— public-records and confidentiality risk checksethics-conflicts— government-role and campaign-role separationcouncil-communication— concise official-profile and municipal-context summaries
Related Skills
policy-research— can escalate decision-focused research to PolicyAide after confirmationmeeting-close-out— produces follow-up memory that may inform future profile/context updatesskill-qa— reviews external-sync confirmation and data minimization gates
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.

