Skip to main content

write-sourceref-citations

Writes canonical SourceRef citations from committed repository artifacts. Use when a deterministic helper needs an authoritative provenance string for a raw artifact.

소스 정보

저장소
wryenmeek/knowledgebase
최근 소스 활동
2026년 10월 11일 22:40
감지된 SKILL.md 언어
영어
스타
1
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
write-sourceref-citations
description
Writes canonical SourceRef citations from committed repository artifacts. Use when a deterministic helper needs an authoritative provenance string for a raw artifact.
# Write SourceRef Citations ## Overview Use this skill to build canonical `repo://...` SourceRef citations from committed repository artifacts. The helper resolves a real git revision, reads bytes from that revision, computes the checksum, and validates the final citation in authoritative mode. ## When to Use - When a draft wiki page needs a canonical SourceRef for `raw/processed/**` or `raw/assets/**` - When reconciling provisional provenance into a commit-bound citation - When deterministic tooling must emit a validated SourceRef string instead of hand-formatting one ## Contract - Input: repo-relative raw artifact path, anchor, and git ref - Path scope is limited to `raw/inbox/**`, `raw/processed/**`, and `raw/assets/**` - Output: a canonical SourceRef plus resolved commit SHA and checksum - Validation runs in authoritative mode before success is returned ## Assertions - Rejects paths outside the raw artifact allowlist - Fails closed if the git ref does not resolve to a real commit containing the artifact - Computes checksum from revision bytes, not the working tree - Uses no shell, no `eval`, and no dynamic dispatch ## Commands ```bash python3 .github/skills/write-sourceref-citations/logic/write_sourceref_citations.py --path raw/processed/source.md --anchor asset --git-ref HEAD ``` ## References - `AGENTS.md` - `docs/architecture.md` - `schema/metadata-schema-contract.md` - `schema/ingest-checklist.md` - `scripts/kb/sourceref.py`
GitHub에서 보기