Policy Lawyer
Overview
INLINECODE0 is built around the curated policy notebook at references/policies.md. The CLI (scripts/policy_lawyer.py) lets you:
- -
--list-topics to list every policy heading. - INLINECODE4 to show the section that matches a topic (case-insensitive).
- INLINECODE5 to search all policies for a given keyword.
- INLINECODE6 to point at a different policy document when comparing workspaces.
Use this skill when you need to remind yourself of the community standards before drafting announcements or when a question lands that needs an authoritative policy quote.
CLI usage
- -
python3 skills/policy-lawyer/scripts/policy_lawyer.py --list-topics prints every section defined under ## <Section Name> in the policy reference. - INLINECODE9 prints the tone guidelines exactly as written so you can quote them during calm reminders.
- INLINECODE10 (or any other keyword) shows the matching lines across all sections so you can quickly see where that topic is governed.
- Supply
--policy-file /path/to/repo/references/policies.md when you want to interrogate a copy of the playbook from another workspace.
Sample commands
CODEBLOCK0
The first command prints the tone section; the second searches for "data" inside another workspace's policies and prints each matching snippet.
References
- -
references/policies.md is the curated policy playbook that lists tone, data, collaboration, and security rules.
Resources
- - GitHub: https://github.com/CrimsonDevil333333/policy-lawyer
- ClawHub: https://www.clawhub.ai/skills/policy-lawyer
政策律师
概述
policy-lawyer 围绕 references/policies.md 中精心整理的政策笔记本构建。CLI(scripts/policy_lawyer.py)允许您:
- - 使用 --list-topics 列出所有政策标题。
- 使用 --topic <名称> 显示与主题匹配的部分(不区分大小写)。
- 使用 --keyword <术语> 搜索所有政策中给定的关键词。
- 使用 --policy-file <路径> 在比较工作区时指向不同的政策文档。
当您在起草公告前需要提醒自己社区标准,或遇到需要权威政策引用的问题时,请使用此技能。
CLI 用法
- - python3 skills/policy-lawyer/scripts/policy_lawyer.py --list-topics 打印政策参考中 ## <章节名称> 下定义的每个部分。
- --topic 语气 按原样打印语气指南,以便您在温和提醒时引用。
- --keyword security(或任何其他关键词)显示所有部分中的匹配行,以便您快速查看该主题在何处被管理。
- 当您想查询另一个工作区的手册副本时,提供 --policy-file /path/to/repo/references/policies.md。
示例命令
bash
python3 skills/policy-lawyer/scripts/policy_lawyer.py --topic 语气
python3 skills/policy-lawyer/scripts/policy_lawyer.py --keyword 数据 --policy-file ../other-workspace/references/policies.md
第一个命令打印语气部分;第二个命令在另一个工作区的政策中搜索数据并打印每个匹配的片段。
参考
- - references/policies.md 是精心整理的政策手册,列出了语气、数据、协作和安全规则。
资源
- - GitHub: https://github.com/CrimsonDevil333333/policy-lawyer
- ClawHub: https://www.clawhub.ai/skills/policy-lawyer