Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器clawhub未标认证来源可访问clear审计通过

sf-civic-digest科幻公民文摘

Agent Skill

sf-civic-digest 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,427

周安装

140

GitHub Stars

公开资料未说明

下载量

1,098
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:sf-civic-digest(科幻公民文摘)
来源仓库:https://github.com/sgillen/sf-civic-digest
安装命令:
openclaw skills install sf-civic-digest
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install sf-civic-digest

简介

跟踪旧金山市政府活动,包括监事会、规划委员会与公开听证会等政务信息。

  • 适用于公共政策研究、市政动态监控与公众参与支持等研究检索场景。
  • 通过 openclaw skills install sf-civic-digest 安装,需确认政府数据源访问权限。
  • 依赖外部政府网站与 RSS 订阅,建议检查更新频率与数据格式。
  • 使用前请核实是否允许抓取公共数据、执行定时任务及访问外部资源,注意版权与使用条款。

SKILL.md

name
sf-civic-digest
description
Track San Francisco city government activity — Board of Supervisors, Land Use committee, Public Safety committee, SFMTA Engineering Public Hearings, SF Planning Commission, Historic Preservation Commission, Zoning Administrator hearings, Planning project notices, and SF.gov district events. Fetches agendas and recaps from SF Legistar, sfmta.com, sfplanning.org, the sf.gov Wagtail CMS API (api.sf.gov), and Socrata open data via curl-based scraping. Filtered by supervisorial district, neighborhood, streets, or topic keywords. Use when a user asks what's happening at City Hall, wants to track legislation or development in their neighborhood, wants a weekly or daily SF civic digest, asks about upcoming public hearings, planning variances, or wants to know what their supervisor is working on. SF-specific.

SF Civic Digest — SKILL.md

Cold-start note: This file is designed to be self-sufficient. An agent reading only SKILL.md should be able to run reports, generate digests, and understand the full data stack. No other context required.

Quick Start

# Step 1: Find the absolute path to this skill's scripts/ directory
#         (it's always a sibling of this SKILL.md file)
SKILL_DIR="/absolute/path/to/sf-civic-digest"

# Step 2: Run scripts using that absolute path (--district N required)
python3 "$SKILL_DIR/scripts/sf_weekly_digest.py" --district 5 --json

# Step 3: Synthesize the JSON output into a narrative report (see STYLE.md)

Note: sf_weekly_digest.py makes ~22 network calls sequentially and can take 2-3 minutes. For a quick test, try a single script first: python3 "$SKILL_DIR/scripts/sf_journalism.py" --district 5 --days 7 --json

District: Pass --district N (1–11) to any script. User preferences and neighborhood context live in USER.md — read it before writing a report. There is no civic_config.json or civic_config.example.json; those files have been removed.

⚠️ Path rule — critical for any agent (any agent, IDE, or human):

  • All scripts must be run with the absolute path to the scripts/ directory
  • Find it: scripts/ is always a sibling of this SKILL.md file
  • Example: if SKILL.md is at /home/alice/.openclaw/workspace/skills/sf-civic-digest/SKILL.md, then scripts are at /home/alice/.openclaw/workspace/skills/sf-civic-digest/scripts/
  • Never use bare relative paths like scripts/foo.py — they break when the working directory is anything other than the skill root
  • When in doubt: realpath on any script path gives you the absolute path

Architecture

Scripts are data pipelines. The agent writes the narrative.

The scripts fetch, parse, dedup, and output JSON. The agent (you) reads that JSON and synthesizes it into a report following the style guide. There is no auto-generated report — the editorial judgment is yours.

sf_weekly_digest.py --json
    └── calls all subscripts → returns combined JSON
            │
            ▼
    Agent reads JSON + STYLE.md
            │
            ▼
    Agent writes narrative report

For report generation, see Report Generation section below.


All Scripts

Canonical script location: skills/sf-civic-digest/scripts/

ScriptWhat it doesMethodNotes
sf_weekly_digest.pyMaster aggregator — calls all subscriptsUse --json for machine-readable output; pass to agent for synthesis
sf_civic_digest.pyBoard of Supervisors + all committees via Legistarcurl--daily for delta only; --days N; state in sf_civic_state.json
sfmta_hearings.pySFMTA Engineering Public Hearingscurl + PDFStreet changes, parking meters, signals. Every ~2 weeks.
sf_planning_notices.pySF Planning project notices (Section 311)curlEarliest signal layer — before commission hearings. Needs Accept: text/html header.
sf_planning_commission.pyPlanning Commission, HPC, ZA full agendascurl + PDFServer-rendered HTML (no browser). --body hpc for HPC, --body za for ZA.
sf_board_of_appeals.pyBoard of AppealsWagtail APIsf.gov CMS API (api.sf.gov). 1st & 3rd Wednesdays, 5pm. No browser needed.
sf_building_permits.pyBuilding permits citywideSocrata RESTEvery permit filed. Classified HIGH/NOTABLE/noise. State-tracked.
sfgov_events.pySupervisor office hours, district eventsREST/JSONVery sparse — supervisor events only. Low signal.
sf_311.py311 service requests by districtSocrata RESTSpike detection. Query two 7-day windows for trend comparison.
sf_ethics.pyLobbyist contacts + campaign contributionsRSS + SocrataContacts: 5f5n-tdbf. Contributions: e6py-fg8b. Column names have NO underscores.
sf_rent_board.pyRent Board commission meetingsWagtail APIsf.gov CMS API (api.sf.gov). No browser needed. Rent increase: links to sf.gov (no hardcoded value).
sf_sfmta_board.pySFMTA Board of Directorscurl1st & 3rd Tuesdays 1pm. Service changes, fare decisions, bike/ped safety.
sf_rec_park.pyRec & Park Commissioncurl (Granicus)view_id=91. sfrecpark.org is unreachable from server — Granicus only.
sf_housing_pipeline.pyAB 2011 / SB 35 / density bonus housing pipelineSocrata RESTCross-refs parcels dataset for district. Watchlist tracks 400 Divisadero. State-tracked.
sf_journalism.pyNews aggregator — 5 SF outletsRSSMission Local, Streetsblog SF, SF YIMBY, 48 Hills, SF Standard. SF Examiner 404s. Archive: sf_journalism_archive.json.
sf_volunteer_cleanups.pyCommunity cleanup eventscurl/JS bundleRefuse Refuse SF + DPW Love Our City NBDs. GoDaddy SPA — data is in JS bundle, not HTML.
sf_bart_board.pyBART Board of Directors + advisory bodiesLegistar APIwebapi.legistar.com/v1/bart/Events. Board = HIGH, advisory = MEDIUM. --next for next meeting.
sf_sfusd_board.pySFUSD Board of Education meetingsGoogle Sheets + BoardDocs2nd & 4th Tuesdays 5pm. Falls back to projected schedule if sources unavailable.
sf_evictions.pyEviction notices by districtSocrata RESTDataset 5cei-gny5. Ellis Act + OMI = displacement signals. Trend comparison (two windows). --district N.
sf_sfcta.pySF County Transportation Authoritycurl (sfcta.org)Congestion pricing, Muni Forward, bike/ped funding, Prop L sales tax. Board + CAC + committees.
sf_civic_actions.pyProtests, rallies, civic actionsMobilize.us API + IndybayNo auth. Rallies/marches = HIGH, canvass/phone bank = MEDIUM. --type rally to filter.
sf_mission_local.pyMission Local news onlyRSSSubset of sf_journalism.py. Use sf_journalism.py for multi-outlet.
config_loader.pyDistrict config loaderAll 11 districts pre-populated. Pass --district N to any script.

No browser required

All scripts now work without a browser. sf_board_of_appeals.py and sf_rent_board.py use the sf.gov Wagtail CMS API (api.sf.gov/api/v2/pages/). sf_planning_commission.py uses curl against server-rendered Drupal HTML (the sfplanning.org calendar pages are not JS-dependent despite initial assumptions).


District Configuration

All scripts accept --district N (1–11). That's all you need for a basic run.

User preferences and neighborhood context (streets, addresses, people to flag) live in USER.md — a human-readable profile file. There is no civic_config.json; that file has been removed. Read USER.md to understand what the user cares about before writing any report.

District→neighborhood mappings: references/sf-districts.md Build timeline benchmarks: references/sf-build-timelines.mdRead before writing about any housing project. Includes typical phase durations, financing tracking methods, and context for whether a project is on track or stalled.


Report Generation

Agent-driven (recommended for one-off reports)

# 1. Collect data (use absolute paths — see path rule above)
python3 /absolute/path/to/sf-civic-digest/scripts/sf_weekly_digest.py --json > /tmp/civic_data.json
python3 /absolute/path/to/sf-civic-digest/scripts/sf_housing_pipeline.py --district 5 --json >> /tmp/civic_data.json
python3 /absolute/path/to/sf-civic-digest/scripts/sf_volunteer_cleanups.py --district 5 --days 14 --json >> /tmp/civic_data.json

# 2. Agent synthesizes following STYLE.md
# Read STYLE.md, read the JSON, write narrative to reports/

Agent-driven reports (quarterly, annual, deep dives)

Give your agent the workspace path and let it orchestrate:

Read STYLE.md and USER.md. Run the scripts in scripts/ to collect data for District 5, then write a Q1 2026 civic digest. Save to reports/.

⚠️ Path gotcha: Agents default to wrong relative paths. Always resolve the absolute path to scripts/ from the location of this SKILL.md before running anything. Use full absolute paths — e.g. python3 /full/path/to/scripts/sf_housing_pipeline.py. Never just scripts/SCRIPTNAME.py.

Report style

Read STYLE.md before writing any report. Key rules:

  • TLDR (5-7 bullets) first — last bullet is always one action
  • Officials box: YOUR elected officials only (supervisor, mayor, state reps)
  • Short sections (3-5 sentences), scan-and-skip
  • Connect threads across sources (lobbying + permits + 311 + journalism = one story)
  • End each thread with a specific action (date, email address, what to say)
  • Rates over counts. "Up 15%" beats "95 reports."
  • Tone: pro-building, pro-tech, car-free lens. See STYLE.md for full framing guidance.

Reference: see STYLE.md for rules and examples.


Key Data Gotchas

These will burn you if you don't know them:

Socrata column names:

  • 311 (vw6y-z8j6): supervisor_district = '5.0' (float string), date field = requested_datetime
  • Building Permits (i98e-djp9): supervisor_district = '5'. Address split across street_number/street_name/street_suffix — no combined field. estimated_cost is a string, cast in Python.
  • Lobbyist Contacts (5f5n-tdbf): NO underscores — officialname, clientname, lobbyistname
  • Lobbyist Contributions (e6py-fg8b): same — lobbyistname, candidatename, sourceoffunds
  • Planning Records (qvu5-m3a2): pim_link returns {"url": "..."} dict, not string. No supervisor_district — cross-reference parcels (acdm-wktn) by block/lot.

Legistar: The API is broken for SF (returns "Agenda Draft Status" error). Use the RSS feed instead: https://sfgov.legistar.com/Feed.ashx?M=C&ID=17442&GUID=EEE85B7C-1A1C-4A56-873E-355A0A0DE5C3&Mode=All&Format=rss Returns ~100 meetings (~6 months). Parse meeting IDs from RSS, then fetch_meeting_detail() for agenda items.

Reddit: Direct curl blocked (403, datacenter IP). Use web_fetch tool — routes differently, works.

sfrecpark.org: Completely unreachable from this server. Granicus (view_id=91) is the only path.

311 trend pattern: Query two 7-day windows (current + prior week) and show week-over-week delta. "Encampments up 15%" is useful. "95 encampments" is not.

Journalism archive: sf_journalism.py persists articles to sf_journalism_archive.json (cap 2000). For quarterly history, use --archive --days 90.


Socrata Dataset Reference

DatasetIDKey fields
Building Permitsi98e-djp9permit_number, permit_type, address (split), supervisor_district ('5'), estimated_cost (string)
311 Casesvw6y-z8j6service_name, requested_datetime, supervisor_district ('5.0')
Planning Dept Recordsqvu5-m3a2record_id, description, record_status, project_address, block, lot, number_of_units_net, pim_link (dict)
SF Parcelsacdm-wktnblock_num, lot_num, supervisor_district, zoning_code
Lobbyist Contacts5f5n-tdbfofficialname, lobbyistname, clientname, outcomesought, subjectarea, filenumber
Lobbyist Contributionse6py-fg8blobbyistname, candidatename, sourceoffunds, committeename
Assessor Parcelsfk72-cxc3property_location, parcel_number, assessed_land_value, zoning_code
Eviction Notices5cei-gny5eviction_id, address, neighborhood, file_date, supervisor_district, ellis_act_withdrawal, owner_move_in

Query pattern: https://data.sfgov.org/resource/{id}.json?$where=supervisor_district='5'&$order=date+DESC&$limit=50


Scraping Method Reference

Sitecurl works?Browser needed?
Legistar (sfgov.legistar.com)No
SFMTA (sfmta.com)No
SF Planning notices (sfplanning.org/notices)✅ (needs Accept header)No
SF Planning calendars (sfplanning.org/hearings-*)✅ (use -list views)No
SF.gov meetings (api.sf.gov)✅ (Wagtail API)No
Socrata (data.sfgov.org)No
SF Ethics (sfethics.org)No
Mission Local / journalism RSSNo
Granicus (Rec & Park)No
Refuse Refuse SF (refuserefusesf.org)✅ (JS bundle)No
sfrb.org✅ (Wagtail API via api.sf.gov)No

Scheduling

Weekly digest (Monday morning)

{
  "schedule": { "kind": "cron", "expr": "0 14 * * 1", "tz": "America/Los_Angeles" },
  "payload": { "kind": "systemEvent", "text": "Run SF civic weekly digest and send summary" }
}

Daily delta (weekday noon check-in)

{
  "schedule": { "kind": "cron", "expr": "0 12 * * 1-5", "tz": "America/Los_Angeles" },
  "payload": { "kind": "systemEvent", "text": "Run SF civic daily delta and report any new agenda items" }
}

File Layout

skills/sf-civic-digest/
├── SKILL.md              ← you are here
├── STYLE.md              ← report style guide (read before writing any report)
├── USER.md               ← user profile: district, neighborhoods, streets, interests (fill this in)
├── .gitignore            ← excludes runtime state from version control
├── scripts/              ← all data pipeline scripts
│   ├── sf_weekly_digest.py      ← master aggregator
│   ├── sf_civic_digest.py       ← Board of Supervisors (Legistar)
│   ├── sfmta_hearings.py        ← SFMTA Engineering Hearings
│   ├── sf_planning_notices.py   ← Planning project notices
│   ├── sf_planning_commission.py← Planning Commission / HPC / ZA
│   ├── sf_board_of_appeals.py   ← Board of Appeals
│   ├── sf_building_permits.py   ← Building permits (Socrata)
│   ├── sfgov_events.py          ← Supervisor events
│   ├── sf_311.py                ← 311 service requests (Socrata)
│   ├── sf_ethics.py             ← Lobbyist contacts + contributions
│   ├── sf_rent_board.py         ← Rent Board
│   ├── sf_sfmta_board.py        ← SFMTA Board of Directors
│   ├── sf_rec_park.py           ← Rec & Park Commission
│   ├── sf_housing_pipeline.py   ← Housing pipeline (AB2011/SB35/density bonus)
│   ├── sf_journalism.py         ← News aggregator (5 outlets)
│   ├── sf_volunteer_cleanups.py ← Community cleanups (Refuse Refuse + DPW)
│   ├── sf_evictions.py          ← Eviction notices (Socrata)
│   ├── sf_bart_board.py         ← BART Board of Directors (Legistar)
│   ├── sf_sfusd_board.py        ← SFUSD Board of Education
│   ├── sf_sfcta.py              ← SF County Transportation Authority
│   └── config_loader.py         ← District config loader
├── reports/              ← generated reports
│   └── archive/          ← older versions
└── references/
    ├── sf-districts.md       ← district map, supervisor names, neighborhood lists
    └── sf-build-timelines.md ← build phase benchmarks, financing signals, project context

Participation Guide

How to comment at SFMTA Engineering Hearings

  • Online: join at sfmta.com/EngHearing when your item is called, raise hand
  • Phone: number + conference ID in hearing notice
  • Written: email the contact listed per item with "Public Hearing" in subject
  • Decisions posted the following Friday at sfmta.com/EngineeringResults

How to comment at Planning Commission / HPC

  • Written comments accepted before each hearing via sfplanning.org
  • HPC meets 1st and 3rd Wednesdays (low attendance, high impact)
  • In-person: City Hall Room 400

How to reach your supervisor

  • Mahmood (D5): bilal.mahmood@sfgov.org
  • Constituent meetings: request via supervisor's website
  • Board public comment: first Tuesday of each month, City Hall Room 250

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

72.51%
按下载量换算796

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills