agentleFS
tiangong-aitiangong-ai/agent-skills/sustainability-summary/SKILL.md

sustainability-summary

Skill11 starsChanged 3 months agoMITView on GitHub

Retrieve time-windowed relevant sustainability RSS evidence from the RSS metadata SQLite database and optionally join DOI-keyed enriched content from a separate fulltext SQLite database. Use when generating grounded daily, weekly, monthly, or custom-range digests after relevance labeling.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read only relevant (is_relevant=1) records from RSS DB.

    line 9

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Sustainability Summary

Core Goal

  • Read only relevant (is_relevant=1) records from RSS DB.
  • Build compact RAG context from DOI-keyed entries.
  • Include optional enriched content from separate fulltext DB entry_content when available.
  • Let the agent synthesize final summary text with evidence anchors.

Triggering Conditions

  • Receive requests for daily/weekly/monthly sustainability digests.
  • Receive requests for custom date-range summaries.
  • Need evidence-grounded output from labeled RSS entries and enriched content.

Input Requirements

  • Required tables: feeds, entries (from sustainability-rss-fetch).
  • entries must be DOI-keyed and relevance-labeled.
  • Optional fulltext DB table: entry_content (from sustainability-fulltext-fetch).
  • RSS DB and fulltext DB must be different files.

Workflow

  1. Build retrieval context by time window.
export SUSTAIN_RSS_DB_PATH="/absolute/path/to/workspace-rss-bot/sustainability_rss.db"
export SUSTAIN_FULLTEXT_DB_PATH="/absolute/path/to/workspace-rss-bot/sustainability_fulltext.db"

python3 scripts/time_report.py \
  --rss-db "$SUSTAIN_RSS_DB_PATH" \
  --content-db "$SUSTAIN_FULLTEXT_DB_PATH" \
  --period weekly \
  --date 2026-02-10 \
  --max-records 120 \
  --max-per-feed 20 \
  --summary-chars 8192 \
  --fulltext-chars 8192 \
  --pretty \
  --output /tmp/sustainability-weekly-context.json
  1. Generate final summary from returned records + aggregates.
  2. Cite evidence using DOI + URL for key claims.

Time Window Modes

  • --period daily --date YYYY-MM-DD
  • --period weekly --date YYYY-MM-DD
  • --period monthly --date YYYY-MM-DD
  • --period custom --start ... --end ...

Default Fields

  • doi,timestamp_utc,timestamp_source,feed_title,feed_url,title,url,summary,fulltext_status,fulltext_length,fulltext_excerpt

Configurable Parameters

  • --rss-db
  • --content-db
  • SUSTAIN_RSS_DB_PATH
  • SUSTAIN_FULLTEXT_DB_PATH
  • --period
  • --date
  • --start
  • --end
  • --max-records
  • --max-per-feed
  • --summary-chars
  • --fulltext-chars
  • --top-feeds
  • --top-keywords
  • --fields
  • --output
  • --pretty
  • --fail-on-empty

Error Handling

  • Missing required DOI-based tables: fail fast with setup guidance.
  • RSS DB and fulltext DB path collision: fail fast and require separate files.
  • Invalid date/time/field list: return parse errors.
  • Missing entry_content: continue in metadata-only mode.
  • Empty relevant set: return empty context; optional failure with --fail-on-empty.

References

  • references/time-window-rules.md
  • references/report-format.md

Assets

  • assets/config.example.json

Scripts

  • scripts/time_report.py

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.