跳到正文
cccskills
免费在 GitHub 公开

license-compliance-credits

Regenerate docs/THIRD-PARTY-NOTICES.md from provenance/borrows.jsonl after any ledger change — even a single new entry — never hand-edit the notices file

中文简介正在准备中。当前显示原文说明。

实测评分 未实测

查看安装方法

包含的文件(2)

  • SKILL.md4.2 KB
  • evals/triggers.json2.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

license-compliance-credits

When to use

  • provenance/borrows.jsonl just gained, lost, or changed a line (a new borrow was ledgered via license-compliance-borrow-check, or a correction line was appended).
  • npx tsx node_modules/@event4u/agent-config/src/scripts/lint_provenance.ts reports the notices file is out of sync with the ledger.
  • Someone asks "are our third-party notices up to date?" or "regenerate the credits file".

Do NOT use when:

  • You want to add a NEW borrow — that starts at license-compliance-borrow-check; this skill only regenerates the derived file from an already-updated ledger.
  • The ledger itself needs fixing (a deny-class entry, a missing note) — fix the offending line via license-compliance-borrow-check's discipline first; this skill cannot repair a bad ledger, only render it.

Procedure

  1. Inspect the current state — read provenance/borrows.jsonl (it may be legitimately empty) and note how many lines it has before regenerating, so the diff is checkable.
  2. Regenerate the notices file:
    npx tsx node_modules/@event4u/agent-config/src/scripts/lint_provenance.ts --regenerate-notices
    
  3. Diff docs/THIRD-PARTY-NOTICES.md before vs. after — confirm only that generated file changed, and that provenance/borrows.jsonl itself was not touched (it is append-only; this command never writes to it).
  4. Verify sync + validity with a plain run (no flag):
    npx tsx node_modules/@event4u/agent-config/src/scripts/lint_provenance.ts
    
    Exit code 0 confirms every ledger record is schema-valid, no deny-class or unknown license slipped through, no transformation note reads as rename-only, and the notices file now matches the ledger byte-for-byte.
  5. If the linter fails, stop — do not hand-patch docs/THIRD-PARTY-NOTICES.md to make it pass. Fix the actual offending line in provenance/borrows.jsonl via license-compliance-borrow-check, then re-run step 2.

Output format

  1. The regenerate command's exit status and a one-line summary of what changed in the notices file (e.g. "added 1 entry: <source_url> (<license>)", or "no borrows recorded" for the honest empty-ledger state).
  2. The follow-up lint_provenance (no flag) exit code, confirming sync — never report success on the regenerate step alone.

Gotcha

  • docs/THIRD-PARTY-NOTICES.md is generated — a hand-edit is invisible until the next lint_provenance run flags the drift as a linter failure, not as an obvious diff. Always regenerate; never patch the file directly.
  • An empty ledger is the honest starting state, not a bug — it renders a plain "no borrows recorded" line. Do not "fix" that by adding a placeholder entry.
  • This skill cannot make a bad ledger pass — if lint_provenance (no flag) still fails after regenerating, the defect is in provenance/borrows.jsonl, not in the notices file.

Do NOT

  • NEVER hand-edit docs/THIRD-PARTY-NOTICES.md.
  • NEVER skip the post-regenerate lint_provenance (no-flag) run — regeneration and validation are two different checks; passing one does not imply the other passed.
  • NEVER add or edit a line in provenance/borrows.jsonl from this skill — that belongs to license-compliance-borrow-check.

See also

  • code-provenance — the rule that makes a ledger entry mandatory before a conscious borrow lands.
  • license-compliance-borrow-check — where new ledger entries are drafted and fixed.
  • provenance/README.md — the ledger's append-only contract.
  • node_modules/@event4u/agent-config/src/scripts/lint_provenance.ts — the linter this skill wraps.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use when reviewing UI for accessibility — WCAG 2.2 AA, keyboard nav, focus, ARIA, contrast, screen-reader semantics — even on 'is this a11y-OK?' or 'mach das barrierefrei'.

中文简介正在准备中。当前显示原文说明。

event4u-app/agent-config132026年10月24日 更新

Use when defining or auditing the activation event — aha-moment selection, retention correlation, falsifiable definition. Triggers on 'what is our aha moment', 'redefine activation'.

中文简介正在准备中。当前显示原文说明。

event4u-app/agent-config132026年10月24日 更新

Use when capturing an architectural decision — file naming, next ADR number, Status / Context / Decision / Consequences, index regen; fires even without saying 'ADR'.

中文简介正在准备中。当前显示原文说明。

event4u-app/agent-config132026年10月24日 更新

Adversarial critique — devil's advocate, stress-test, honest teardown ('poke holes', 'be brutal', 'was hältst du davon'); explicit request only. Routine code or design review → code-review.

中文简介正在准备中。当前显示原文说明。

event4u-app/agent-config132026年10月24日 更新

Use when reading, creating, or updating agent documentation, module docs, roadmaps, or AGENTS.md. Understands the full .augment/, agents/, and copilot-instructions structure.

中文简介正在准备中。当前显示原文说明。

event4u-app/agent-config132026年10月24日 更新

Use for an adversarial red-team / blue-team / auditor review of an AI agent's CONFIG + behaviour (rules, skills, MCP, hooks, permissions) — attack-chain → defensive-gap list, not a code audit.

中文简介正在准备中。当前显示原文说明。

event4u-app/agent-config132026年10月24日 更新

查看 event4u-app 的全部技能

报告此技能的问题