About knowledge-base-add-project
A workflow skill for adding upstream projects to a knowledge-base repository and keeping existing entries current. It guides maintainers through an idempotent update process, documentation, indexing, and commits.
Key features
- 01Add projects and categories
- 02Refresh existing project records
- 03Follow required document and metadata specs
- 04Update the tracked-project index
- 05Keep changes idempotent and scoped
Use cases
- 01Documenting a new upstream repository
- 02Running scheduled project maintenance
- 03Updating releases or changed API documentation
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ mmontes11/ skills --skill knowledge-base-add-projectAfter installing, type/knowledge-base-add-projectin Claude Code to confirm it loaded.
Details
From the project READMEAdd or update a project in the knowledge base
Add a new upstream project under projects/<category>/<project>/, or refresh an existing one. The root
README.md of the knowledge base is the contract: its Standard documents section is the authoritative
spec for what each of the fixed files contains, its Metadata section defines the frontmatter, and its
Tracked projects table is the index. This skill is the workflow — it does not restate those specs; it
tells you how to create and update an entry idempotently.
Locate the knowledge base
Work inside the knowledge-base repository. The canonical local checkout is ~/code/knowledge-base; if it
is absent, git clone [email protected]:mmontes11/knowledge-base.git ~/code/knowledge-base. All paths below are
relative to the repository root.
Two modes
- Add — create a brand-new project folder (and optionally a new category) from upstream.
- Update — the idempotent maintenance pass over one existing project; this is what the monthly update schedule drives.
Mode A — Add a project
- Read the target category's
projects/<category>/README.md, plus the Standard documents and Metadata sections of the rootREADME.md. - Pick the category (an existing one, or add a new category first — below) and the project slug = the upstream repository name in lowercase kebab-case.
- Create
projects/<category>/<project>/with the four required standard documents, populated from upstream and built to the spec in the rootREADME.md:README.md,api-reference.md,releases.md,features.md— the required four.architecture.md— only if the project is a complex multi-component system. Render every mermaid diagram before finishing:mermaid-render /tmp/d.mmd # a clean, non-empty SVG/PNG means the block renders on GitHub
- Frontmatter on every doc:
upstream(canonical repository URL) andlast_updated(UTC date). - Link, don't copy — every factual statement links to its upstream source; never inline full schemas, specs, or generated dumps.
- Add the row to the Tracked projects table in the root
README.md. - Commit
docs(<category>/<project>): <summary>and push directly tomain.
Add a category
- Create
projects/<category>/README.mdwith a short description of the domain (lowercase kebab-case name). - Add its first project's row to Tracked projects.
Mode B — Update a project (maintenance run)
Every run must be idempotent: unchanged upstream state produces an empty diff. For the one project in scope, in order:
- Read the current folder and frontmatter.
- Fetch upstream truth: the latest release tag, any releases newer than the newest entry in
releases.md, and changes to the API/feature documentation. releases.md— prepend new entries, keep the 10-entry cap.api-reference.md— only if the API surface changed (new/removed/renamed Kinds or surfaces).features.md— only if feature documentation or release notes changed.architecture.md— only if it exists and the component set or interactions changed; re-render every mermaid diagram (mermaid-render) and confirm it still matches the current components.README.md— only if description, license, or upstream URLs changed.- Bump
last_updatedin the frontmatter of every file that was modified. - Commit once per project:
docs(<category>/<project>): <summary>. - Push directly to
main. If a Multica issue drove the run, mark it done once the push lands.
Hygiene (both modes)
- No credentials, tokens, or cluster-specific data — ever.
- Summarize and link; do not copy upstream text wholesale (respect upstream licenses and attribution).
- Every factual statement links to the upstream source it came from.
- Keep the diff small and explainable — one project per run.