Skip to content
Back to skills

Wiki

ASecurity

Bootstrap or reorganize a Markdown knowledge base as an LLM Wiki and multi-repo Home Repo. Use for initializing a knowledge base, migrating an existing wiki to a shared layout, or planning that migration. Not for routine lookups, single-page edits, or live project status.

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
ai-agentspythongogit

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned November 30, 2026

npx -y skills add yanmxa/skills --skill wiki --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Wiki?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Wiki
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yanmxa-wiki/badge)](https://www.skillsdirectory.com/skills/yanmxa-wiki)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: wiki
description: Bootstrap or reorganize a Markdown knowledge base as an LLM Wiki and multi-repo Home Repo. Use for initializing a knowledge base, migrating an existing wiki to a shared layout, or planning that migration. Not for routine lookups, single-page edits, or live project status.
---

# Home Repo Wiki

Use a Home Repo to route work across repositories. Use an LLM Wiki to maintain sourced, linked conclusions without copying raw material or live status.

## Layout

| Path | Purpose |
| --- | --- |
| `AGENTS.md` | Cross-repo rules, source authority, sharing boundaries, and wiki maintenance. |
| `index.md` | Find pages by topic, with one line per entry. |
| `log.md` | Append meaningful changes and why they happened. Skip routine lookups. |
| `repos.md` | Verified repo roles, checkout paths, and clone sources. |
| `references.md` | Shareable sources, external references, and evidence limits. |
| `docs/topics/`, `docs/guides/` | Synthesis and reusable procedures. Create on demand. |
| `raw/`, `repos.local.md` | Optional local originals and restricted pointers; keep out of Git. Git ignore is not access control. |

Keep code and repo-specific rules in their own repos. Preserve existing skill loading conventions; if the host only reads `CLAUDE.md`, point it to `AGENTS.md` rather than duplicating rules.

## Workflow

1. **Scope.** Confirm the target, audience, and whether to plan or apply. Inspect only that target's Git state, rules, and wiki structure. Do not open secrets or unauthorized originals. For plan-only requests, write nothing.
2. **Initialize an empty target.** Create the named directory if needed, then run the command below. A target containing only `.git` is allowed. Without Python 3, copy the [starter files](assets/starter/AGENTS.md) and replace `{{TITLE}}` and `{{DATE}}`. Do not invent sources or repos, create empty content directories, initialize Git, clone siblings, commit, or push.
3. **Migrate an existing wiki.** Map each affected file to its destination, backlinks, and sharing scope. Merge rules and content instead of overwriting them. Preserve evidence, contradictions, log history, originals, and unrelated changes. Move only authorized pages; ask before deleting a page. Keep restricted pointers out of shared files and reports. If private content is already tracked, pause that part and ask how to handle it.
4. **Finish.** Update affected links, index entries, and references. Record actual changes in `log.md` as `## [YYYY-MM-DD] lint | Title` (or `ingest` or `query` as appropriate). Leave a compliant wiki unchanged. Check the layout and diff, verify that local-only paths are ignored and untracked, then report changes and open decisions.

```sh
python3 "<skill-dir>/scripts/wiki_layout.py" init "<target>" --title "<wiki title>"
python3 "<skill-dir>/scripts/wiki_layout.py" check "<target>"
```

Use the skill's installed path for `<skill-dir>`. `check` is read-only and verifies required files, index coverage, and local inline links. It does not certify permissions or verify source claims.

## Split only when needed

- **Index:** keep `index.md` as the entry point; add category indexes when the flat list is hard to scan. Update validation to follow explicit subindexes.
- **Log:** keep recent entries and archive links in `log.md`; archive by time, preserving dates, order, and links.
- **References:** keep `references.md` as the entry point and split lists by evidence domain. Cite authoritative documents or versions from the claims they support.

Do not scaffold these splits up front. When approved, keep root entry points, repair links, and extend validation to the new files.

Based on [Karpathy's LLM Wiki](https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f) and [The Home Repo Pattern](https://www.aihero.dev/the-home-repo-pattern).

Files in this skill

  • SKILL.md3.7 KB
  • assets/starter/.gitignore32 B
  • assets/starter/AGENTS.md1.7 KB
  • assets/starter/index.md470 B
  • assets/starter/log.md227 B
  • assets/starter/references.md235 B
  • assets/starter/repos.md316 B
  • evals/evals.json1.9 KB
  • scripts/wiki_layout.py4.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.