skills/PublishPrompts/SKILL.md
Provenance tracking and sync for inherited rules, skills, and agents. USE WHEN drift, sync, publish prompts, inheritance, upstream, propagate, adapt rules, check provenance.
npx skillsauth add n4m3z/forge-core PublishPromptsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Track inheritance of rules, skills, and agents between forge modules and downstream company repos. Detects which files came from upstream, what's been adapted, and what upstream changes are available.
publish-prompts.sh is a read-only drift reporter. It scans installed content against upstream module sources and reports provenance state. Manifests are written by the forge install command during make install.
bash Modules/forge-core/skills/PublishPrompts/publish-prompts.sh --type all --modules-dir Modules
For downstream repos:
bash skills/PublishPrompts/publish-prompts.sh --type all --modules-dir /path/to/forge/Modules
| Keyword | Subskill | What it does | |----------------------------------|----------|---------------------------------------------| | "drift", "check", "status" | Drift | Scan and report provenance state | | "sync", "update", "propagate" | Sync | Pull upstream changes into adapted files | | "adopt", "add" | Adopt | Start tracking a new upstream file | | "promote", "push upstream" | Promote | Push a local improvement back to forge | | "setup", "initialize" | Setup | Scaffold a downstream repo for inheritance |
Run the companion script to show the current state of all inherited content.
publish-prompts.sh --type all and present the table to the user.Propagate upstream changes to files tracked in the manifest.
publish-prompts.sh --type all to get current state.To compute the 3-way diff, use the manifest SHA to identify what the file looked like when it was adopted. If the upstream module is a git repo, you can retrieve the ancestor content:
# Find the commit where the upstream file had the adopted SHA
git -C Modules/forge-core log --all --format=%H -- rules/SelfLearning.md | while read commit; do
sha=$(git -C Modules/forge-core show "$commit:rules/SelfLearning.md" | awk 'BEGIN{fm=0}/^---$/{fm++;next}fm>=2{print}' | shasum -a 256 | cut -d' ' -f1)
if [ "${sha:0:8}" = "a3f047b9" ]; then
echo "Ancestor commit: $commit"
git -C Modules/forge-core show "$commit:rules/SelfLearning.md"
break
fi
done
Add a new upstream file to local tracking.
rules/, skills/, or agents/ directory.paths: scoping), make the edits.make install to regenerate the manifest with the new entry.Push a local improvement back upstream to a forge module.
make install to update the manifest.Initialize a downstream repo for inheritance tracking.
make install to generate manifests for all tracked content.All three artifact types (rules, skills, agents) use a unified SHA map format. The .manifest file is written by install binaries during make install and grouped by source module:
forge-core:
GitConventions.md: 8f4ca9a50b03d3043a53d0007965a5dcf182bb236cea5f27...
KeepChangelog.md: 1de3b2a8c0681396c7bd76be217f688958f44cf4a186c52c...
forge-council:
AgentTeams.md: e1ae3ab285bc4d502508989d26ab41922e603908c78b61b9...
For rules and agents, the SHA is the body hash of the upstream source file (frontmatter stripped). For skills, it's the body hash of SKILL.md. State is computed at scan time:
forge install, not by the companion scriptdevelopment
Reactive correction and root-cause fix. USE WHEN something went wrong, user is frustrated, demands a correction, says wtf, what the hell, why did you, that's wrong, this is broken, no not that, stop. Executes the immediate fix, then hunts the upstream artifact that caused it and creates a corrective change.
development
Decompose a research question into sub-queries, spawn parallel WebResearcher agents per angle, synthesize findings with citations and explicit confidence. USE WHEN the user asks to research, investigate, look online, look up, dig into, find sources, gather evidence, or survey what's known about a topic. Single-pass; for multi-round adversarial research use ResearchCouncil in forge-council.
tools
Author project documentation that future humans (and AI sessions) actually read. Covers TLDRs for tools, READMEs, runbooks, journals. USE WHEN write documentation, create tldr, tool one-pager, document a cli, write readme, runbook, journal entry, capture knowledge about a tool, distill a session into reusable notes.
development
Review your own staged changes via a code-review TUI before triggering a commit. USE WHEN about to commit, walking through your own staged diff, self-reviewing before approval, tuicr, revdiff, git diff cached.