agentleFS
javatarzjavatarz/credit-card-lending/.claude/skills/wiki/SKILL.md

wiki

Skill4 starsChanged 11 months agoMITView on GitHub

Access and manage the local GitHub Wiki clone. Use this skill when you need to read wiki content (architecture, design docs, guides), update wiki documentation, check wiki status, or push wiki changes. The wiki contains high-level system design and architectural documentation.

31 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use wiki-lint, wiki-ingest and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • graypirateSkill

    wiki-lint

    Run a health check on the user's wiki. Use when the user asks to lint, audit, clean up, check, or fix the wiki — or when they suspect orphans, broken wikilinks, stale pages, missing frontmatter, or contradictions between pages. Combines structural checks (zero token cost) with semantic review (LLM reasoning).

    Also in 4 projects that use this

  • bozhouDevSkill

    wiki-ingest

    Use when adding a new source to a wiki — a paper, article, URL, file, transcript, or any document. One ingest may touch 10-15 wiki pages.

    Also in 4 projects that use this

  • TashanGKDSkill

    note

    个人笔记记录助手。自动以 JSON 格式记录想法、学习笔记、会议纪要到 ~/.note,支持标签分类和全文搜索。

    Also in 3 projects that use this

  • bozhouDevSkill

    wiki-query

    Use when asking a question against a personal wiki built with wiki-init and wiki-ingest. Do not answer from general knowledge — always read the wiki pages first.

    Also in 3 projects that use this

  • GitHubSkill

    autoresearch

    Autonomous iterative experimentation loop for any programming task. Guides the user through defining goals, measurable metrics, and scope constraints, then runs an autonomous loop of code changes, testing, measuring, and keeping/discarding results. Inspired by Karpathy''s autoresearch. USE FOR: autonomous improvement, iterative optimization, experiment loop, auto research, performance tuning, automated experimentation, hill climbing, try things automatically, optimize code, run experiments, autonomous coding loop. DO NOT USE FOR: one-shot tasks, simple bug fixes, code review, or tasks without a measurable metric.

    Also in 4 projects that use this

  • an8079Skill

    autopilot

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 26 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never auto-push: - always require explicit request

    line 108
  2. Distinctive:

    If changes exist, commit them first (or ask user for commit message).

    line 118
  3. Distinctive:

    If none: "Nothing to push.

    line 124
  4. Distinctive:

    Default to read-only: if auth fails - better than nothing

    line 162

“Common” is measured: kept by at least 6 in 10 of the 26 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Wiki Management Skill

Manage a local clone of the GitHub Wiki at docs/wiki/. Humans read wiki online; AI tools read/write locally.

When to Use This Skill

  • User asks about architecture, system design, or high-level documentation
  • User asks to read, update, or check wiki content
  • User asks to push wiki changes
  • You need architectural context not found in code

Wiki Repository

PropertyValue
Local pathdocs/wiki/ (gitignored)
URLsDerived from git remote (portable)

Deriving Wiki URLs

GitHub wikis follow a convention: repo.wiki.git. Derive URLs from the main repo:

# Get main repo remote URL
REPO_URL=$(git remote get-url origin 2>/dev/null)

# Derive wiki clone URL (works for both SSH and HTTPS)
WIKI_URL="${REPO_URL%.git}.wiki.git"

# Derive online wiki URL for fallback messages
ONLINE_URL=$(echo "$REPO_URL" | sed -E 's|git@github.com:|https://github.com/|; s|\.git$|/wiki|')

Before Any Wiki Operation

  1. Check if wiki clone exists:
    test -d docs/wiki/.git && echo "exists" || echo "missing"
  2. If missing, clone it:
    REPO_URL=$(git remote get-url origin)
    WIKI_URL="${REPO_URL%.git}.wiki.git"
    git clone "$WIKI_URL" docs/wiki
  3. If clone fails: Derive and provide the online wiki URL as fallback.

Reading Wiki Content

  1. Auto-pull for freshness (silently):
    git -C docs/wiki pull --quiet 2>/dev/null || true
  2. Read the requested file from docs/wiki/
  3. If file not found, list available pages:
    ls docs/wiki/*.md 2>/dev/null | xargs -n1 basename

Wiki Status

Show the current state of the local wiki:

# Uncommitted changes
git -C docs/wiki status --porcelain

# Last commit
git -C docs/wiki log -1 --format="%h %s (%cr by %an)"

# Unpushed commits (fetch first)
git -C docs/wiki fetch origin 2>/dev/null
git -C docs/wiki log origin/master..HEAD --oneline

# Unpulled commits
git -C docs/wiki log HEAD..origin/master --oneline

# Available pages
ls docs/wiki/*.md 2>/dev/null | xargs -n1 basename

Warn if unpushed changes exist.

Updating Wiki Content

  1. Pull first to ensure working with latest
  2. Make the edits as requested
  3. Commit with standard message:
    git -C docs/wiki add -A
    git -C docs/wiki commit -m "Description of changes
    
    Generated with [Claude Code](https://claude.com/claude-code)
    
    Co-Authored-By: Claude <noreply@anthropic.com>"
  4. Remind user: Changes are local until pushed
  5. Never auto-push - always require explicit request

Pushing Wiki Changes

CRITICAL: Requires explicit user approval. Wiki pushes go live immediately (no PR review).

  1. Check for uncommitted changes:
    git -C docs/wiki status --porcelain
    If changes exist, commit them first (or ask user for commit message).
  2. Check for unpushed commits:
    git -C docs/wiki log origin/master..HEAD --oneline
    If none: "Nothing to push. Wiki is in sync with remote."
  3. Pull first to avoid conflicts:
    git -C docs/wiki pull origin master
  4. Show diff preview:
    git -C docs/wiki diff origin/master..HEAD
  5. Use AskUserQuestion for approval: Present the diff and ask: "These changes will be pushed to the wiki and GO LIVE IMMEDIATELY. Proceed?"
    • Option 1: "Yes, push these changes"
    • Option 2: "No, cancel"
  6. If approved, push:
    git -C docs/wiki push origin master
  7. Confirm success with online wiki URL.

Error Handling

ScenarioAction
Clone fails (auth)Provide online wiki URL as fallback
Push fails (auth)Preserve local changes, show error, suggest fixes
Pull conflictsShow conflicting files, ask user how to resolve
No wiki existsInform user, provide instructions to create one

Important Rules

  • Never auto-push - wiki pushes go live immediately
  • Always pull before push - prevents lost updates
  • Preserve local changes on failure - user work should never be lost
  • Default to read-only if auth fails - better than nothing

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.