install
source · Clone the upstream repo
git clone https://github.com/jmagly/aiwg
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/jmagly/aiwg "$T" && mkdir -p ~/.claude/skills && cp -r "$T/agentic/code/frameworks/sdlc-complete/skills/provenance-create" ~/.claude/skills/jmagly-aiwg-provenance-create-a7740d && rm -rf "$T"
manifest:
agentic/code/frameworks/sdlc-complete/skills/provenance-create/SKILL.mdsource content
Provenance Create Command
Create a provenance record for a new or existing artifact, establishing its Entity-Activity-Agent chain.
Instructions
When invoked, create provenance record:
-
Read artifact
- Load file at specified path
- Compute SHA-256 content hash
- Extract @-mentions for derivation sources
-
Determine metadata
- Activity type: generation (new) or modification (existing)
- Agent: from
flag or infer from context--agent - Derivation sources: from @-mentions or
flags--derived-from
-
Generate URN identifiers
- Entity:
urn:aiwg:artifact:<relative-path> - Activity:
urn:aiwg:activity:<type>:<name>:<sequence> - Agent:
urn:aiwg:agent:<agent-name>
- Entity:
-
Create provenance record
- Generate YAML conforming to
@$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/schemas/provenance/prov-record.yaml - Include entity, activity, agent, and relationships
- Include timestamps and content hash
- Generate YAML conforming to
-
Validate record
- Verify schema compliance
- Check all referenced entities exist
- Verify derivation sources are valid paths
-
Save record
- Write to
.aiwg/research/provenance/records/<artifact-name>.prov.yaml - Update provenance index if it exists
- Write to
-
Report
- Display created record summary
- Show derivation chain
Arguments
- Path to artifact (required)[artifact-path]
- Explicit derivation sources--derived-from [paths...]
- Activity type: generation, modification, refactoring, testing, review, derivation (default: generation)--activity [type]
- Agent that created the artifact (default: inferred)--agent [name]
- Custom output path for provenance record--output [path]
- Skip schema validation--no-validate
References
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/agents/provenance-manager.md - Provenance Manager agent
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/schemas/provenance/prov-record.yaml - PROV record schema
- @.aiwg/research/provenance/docs/provenance-guide.md - Provenance guide
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/rules/provenance-tracking.md - Provenance tracking rules