civ-finish-quotes

Add Civilization-style completion quotes to finished work with a lightweight, offline skill and curated quote library

aay6024
作者 aay6024
其他 · MIT · Python · 更新时间: 3 months ago
0
星标
0
Forks
社区
BBB
安全:
优秀
A
质量:
4x4x-strategy-gameactivismcivcivic-engagementcivilizationcongressdjangodjango-rest-frameworkeventgamegracefulhacktoberfesthttplegislative-bill-analysislibgdxpoliticssocial-networkstrategy-game

name: civ-finish-quotes description: Add a Civilization-style ceremonial quote when a substantial task is truly complete. Use this whenever the user or agent is wrapping up a real deliverable such as a feature, refactor, analysis, design doc, process change, report, or writing task, even if they do not explicitly ask for a quote; skip short replies, tiny fixes, and unfinished work.

Civ Finish Quotes

Use this skill as a final completion ritual after a real piece of work is finished.

This skill is for the last step of a substantial task, not for ordinary chat. It should feel like a Civilization technology or wonder completion line: brief, ceremonial, and anchored by a real quote with an author and source.

Compatibility

Trigger Gate

Default behavior: trigger this skill for almost all task closures that produced a real result.

Use this lenient gate:

  1. The work has some concrete output. Examples: code/doc updates, analysis conclusion, decision, plan, verification, checklist completion.
  2. The work is presented as done for this turn. Examples: "finished", "completed", "done", "ready", "交付", "完成", "发布".

Only skip this skill for clear non-completion micro replies:

Runtime Flow

When the trigger gate passes:

  1. Summarize the finished task into a small JSON payload.
  2. Call the local render script.
  3. If it returns no_match, say nothing extra and end normally.
  4. If it returns ok, read quote_text and needs_translation.
  5. If needs_translation=true, translate quote_text into the user's language in the final reply.
  6. Compose the final ceremonial block in the user's language with a fixed divider line.

Hard Rules

Request Payload

Use this structure:

{
  "task_summary": "Implemented the new quote selection pipeline and documented the curation flow.",
  "deliverable_type": "code",
  "completion_class": "engineering",
  "completion_mode": "build",
  "keywords": ["pipeline", "selection", "curation", "script"],
  "user_language": "zh-CN",
  "recent_quote_ids": []
}

Completion Classes

Completion Modes

Render Command

Run:

python3 ./scripts/render_finish_quote.py --library ./assets/quotes/approved_quotes.jsonl --input-json '<JSON_PAYLOAD>'

The renderer returns:

Notes:

Output Contract

The final quote block must:

Use this shape:

----------

“<translated quote>”
—— <author>,《<source title>》
🔓 登录解锁更多
使用 GitHub 登录