← 返回 Skills 市场
213
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install citation-anchoring
功能描述
Regression-check citation anchoring (citations stay in the same subsection) to prevent “polish drift” that breaks claim→evidence alignment. **Trigger**: cita...
使用说明 (SKILL.md)
Citation Anchoring (regression)
Purpose: prevent a common failure mode: polishing rewrites text and accidentally moves citation markers into a different ### subsection, breaking claim→evidence alignment.
Inputs
output/DRAFT.mdoutput/citation_anchors.prepolish.jsonl(baseline; created bydraft-polisheron first run)
Outputs
output/CITATION_ANCHORING_REPORT.md(PASS/FAIL + drift examples)
Baseline policy
draft-polishercaptures a baseline once per run:output/citation_anchors.prepolish.jsonl.- Subsequent polish runs should keep per-H3 citation sets stable.
Workflow (analysis-only)
Role:
- Auditor: only checks and reports; does not edit.
Steps:
- Load the baseline anchors.
- Parse the current
output/DRAFT.mdinto###subsections and extract citation keys per subsection. - Compare current sets to baseline sets:
- keys added/removed within a subsection
- keys that migrated across subsections
- Write
output/CITATION_ANCHORING_REPORT.md:
- Status: PASSonly if no drift is detected- otherwise,
- Status: FAILwith a short diff table + examples
Notes
If you intentionally restructure across subsections:
- delete
output/citation_anchors.prepolish.jsonland regenerate a new baseline (then treat that as the new regression anchor).
Troubleshooting
Issue: baseline anchor file is missing
Fix:
- Run
draft-polisheronce to generateoutput/citation_anchors.prepolish.jsonl, then rerun the anchoring check.
Issue: citations intentionally moved across subsections
Fix:
- Delete
output/citation_anchors.prepolish.jsonland regenerate a new baseline (then treat that as the new regression anchor).
安全使用建议
This skill's SKILL.md describes a safe, offline check (read baseline JSONL + DRAFT.md → produce an anchor report). However the package includes a large pipeline/tooling codebase and an executor that can run repo scripts via subprocess.run. Before installing or enabling this skill: 1) Inspect repo_root/scripts/run.py (or confirm it does not exist) — that's the executable the bundle may call. 2) Review tooling/executor.py and any entrypoint scripts to understand what will be executed and what files will be touched. 3) If you only need the simple anchor check, consider extracting or running a minimal script that performs the JSONL vs DRAFT.md comparison rather than enabling the entire bundle. 4) Run the skill in a sandbox workspace with non-sensitive files first. 5) If you do enable autonomous invocation, prefer least-privilege workspaces and ensure no secrets or sensitive files are present, because the executor could execute repo-local scripts that perform broader actions.
功能分析
Type: OpenClaw Skill
Name: citation-anchoring
Version: 1.0.0
The skill bundle provides a regression testing framework called 'citation-anchoring' designed to ensure that citations remain within their designated subsections during text polishing. The code in the `tooling/` directory consists of standard utility functions for file management (JSONL, YAML, TSV), text processing, and extensive quality validation logic in `tooling/quality_gate.py`. While `tooling/executor.py` utilizes `subprocess.run` to execute internal scripts, the execution is scoped to the local workspace and follows the expected operational pattern for OpenClaw skills. No evidence of data exfiltration, malicious persistence, or prompt injection was found.
能力评估
Purpose & Capability
The skill's stated purpose is a narrow, analysis-only citation anchoring check (read a baseline JSONL and the DRAFT.md, then write a report). However the bundle contains many pipeline definitions and sizeable tooling modules (tooling/*.py, pipelines/*.md, a 275kB quality_gate module, executor logic, etc.). That large pipeline/tooling footprint is disproportionate for a small regression check and suggests the skill is a general pipeline component rather than a minimal, single-purpose checker.
Instruction Scope
SKILL.md itself is well-scoped: it says 'analysis-only', 'Network: none', and describes reading output/DRAFT.md and the baseline JSONL and writing output/CITATION_ANCHORING_REPORT.md. However included code (tooling/executor.py) can run subprocesses (it constructs and runs repo_root/scripts/run.py) and reads/writes many workspace files. The instructions do not explicitly tell the agent to execute arbitrary scripts, but the bundled executor enables that behavior if used — this expands runtime scope beyond the simple file-compare described in SKILL.md.
Install Mechanism
No external install/downloads are declared (no install spec). The skill requires only a Python binary (python3 or python) which is appropriate for included Python code. No third-party network downloads are present in the provided metadata.
Credentials
The skill declares no required environment variables, no credentials, and no config paths. That aligns with the described purpose (local file analysis).
Persistence & Privilege
The skill is not marked always:true and uses the platform default (agent-invocable/autonomous allowed). It does not request to modify other skills or system-wide config in the provided files. Still, autonomous invocation combined with executor subprocess logic increases the potential blast radius if misused.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install citation-anchoring - 安装完成后,直接呼叫该 Skill 的名称或使用
/citation-anchoring触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of citation-anchoring skill to detect and report citation drift across `###` subsections during editing/polishing.
- Compares baseline citation anchors with current draft to ensure claim→evidence alignment is preserved.
- Outputs a PASS/FAIL report with details of any drift, but does not modify content.
- Requires a baseline anchor file generated from a previous `draft-polisher` run.
- Designed as an analysis-only networkless tool; safe for audit use.
元数据
常见问题
Citation Anchoring 是什么?
Regression-check citation anchoring (citations stay in the same subsection) to prevent “polish drift” that breaks claim→evidence alignment. **Trigger**: cita... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 213 次。
如何安装 Citation Anchoring?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install citation-anchoring」即可一键安装,无需额外配置。
Citation Anchoring 是免费的吗?
是的,Citation Anchoring 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Citation Anchoring 支持哪些平台?
Citation Anchoring 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Citation Anchoring?
由 WILLOSCAR(@willoscar)开发并维护,当前版本 v1.0.0。
推荐 Skills