Agent skill

Pensieve

by kingkongshot in kingkongshot/Pensieve

Project knowledge base and workflow router. An agent skill from kingkongshot/Pensieve.

MITAuto-check passedKnowledge Management

Install Pensieve

skills CLI
$ npx skills add kingkongshot/Pensieve --skill pensieve -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install kingkongshot/Pensieve pensieve --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pensieve
GitHub stars
2.5k
Token cost
~436 tokens
SKILL.md length
132 words
Files
67
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

Project knowledge base and workflow router. An agent skill from kingkongshot/Pensieve.

  • Tasks that involve Code quality
  • SKILL.md covers Routing and Project Data
  • Runs Python scripts from its folder
  • Tasks that involve CI/CD

What it does

Pensieve is an agent skill from kingkongshot/Pensieve. Project knowledge base and workflow router. knowledge/ caches explored file locations, module boundaries, and call chains for reuse; decisions/maxims are established architecture decisions and coding standards to follow, not relitigate; pipelines are reusable workflows; short-term/ stages new conclusions until promotion or deletion. Use self-improve after completing work to capture new insights. Provides seven tools: init, upgrade, migrate, doctor, self-improve, refine, and sync-instructions.

Its SKILL.md is about 440 tokens, which your agent loads only when the skill is triggered. The skill folder holds 71 other files (for example `.src/core/doctor_engine.py`, `.src/core/pensieve_core.py` and `.src/core/schema.json`).

It sits in Knowledge Management, covering Code quality, CI/CD and Knowledge bases. The repository describes itself as: tore your decisions and principles. Claude reads them to make better choices. The licence is MIT.

When your agent uses it

  • Tasks that involve Code quality
  • Tasks that involve CI/CD
  • Tasks that involve Knowledge bases

Example prompts

  • “/pensieve”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 8731f61. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python, from the files we listed), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pensieve loads about 436 tokens when it runs. Until then it costs about 127 tokens; SKILL.md has 132 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~127
When it runs · the whole SKILL.md, loaded when a task matches
~436

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from kingkongshot/Pensieve at commit 8731f61, republished under its MIT licence (© kingkongshot). 132 words, ~436 tokens.

Download SKILL.mdSave it as .claude/skills/pensieve/SKILL.md (or your agent's skills folder). This skill also uses 66 other files; get the full folder from GitHub.
name
pensieve
description
Project knowledge base and workflow router. knowledge/ caches explored file locations, module boundaries, and call chains for reuse; decisions/maxims are established architecture decisions and coding standards to follow, not relitigate; pipelines are reusable workflows; short-term/ stages new conclusions until promotion or deletion. Use self-improve after completing work to capture new insights. Provides seven tools: init, upgrade, migrate, doctor, self-improve, refine, and sync-instructions.

Pensieve

Route user requests to the correct tool. When in doubt, confirm first.

Routing

  • Init: Initialize the current project user-data directory and seed files. Tool spec: .src/tools/init.md.
  • Upgrade: Refresh Pensieve skill source code in the global git clone. Tool spec: .src/tools/upgrade.md.
  • Migrate: Run structural migration and legacy cleanup. Tool spec: .src/tools/migrate.md.
  • Doctor: Read-only scan of the current project user-data directory. Tool spec: .src/tools/doctor.md.
  • Self-Improve: Extract reusable conclusions and write them into user data. Tool spec: .src/tools/self-improve.md.
  • Refine: Refine the knowledge base with triage review and compression. Tool spec: .src/tools/refine.md.
  • Sync Instructions: Write existing pipeline short routes into CLAUDE.md / AGENTS.md. Tool spec: .src/tools/sync-instructions.md.
  • Graph View: Read <project-root>/.pensieve/.state/pensieve-user-data-graph.md.

Project Data

Project-level user data is stored in <project-root>/.pensieve/. See .pensieve/state.md for the current project's lifecycle state; see .pensieve/.state/pensieve-user-data-graph.md for the knowledge graph (read on demand).

© kingkongshot, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 66 other files in the repository root of kingkongshot/Pensieve.

  • SKILL.md
  • .codex/skills
  • .gitignore
  • .src/core/doctor_engine.py
  • .src/core/pensieve_core.py
  • .src/core/schema.json
  • .src/loop/DESIGN.template.md
  • .src/loop/REQUIREMENTS.template.md
  • .src/manifest.json
  • .src/references/decisions.md
  • .src/references/directory-layout.md
  • .src/references/knowledge.md
  • .src/references/maxims.md
  • .src/references/pipelines.md
  • .src/references/shared-rules.md
  • .src/references/short-term.md
  • … and 51 more

Open the folder on GitHubat commit 8731f61

Compare with similar skills

Pensieve next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pensieve compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pensieve this skillkingkongshot/Pensieve2.5k—~436Automated safety check: PassMIT
Knowledge Searchdataelement/bisheng12k—~1.1kAutomated safety check: PassApache-2.0
Capture Conversationoutline/outline41k—~474Automated safety check: PassCustom licence
Find And Citeoutline/outline41k—~537Automated safety check: PassCustom licence
Xhs Virtual Productchenjin-cmd/xhs-virtual-product729—~862Automated safety check: PassMIT
OpenkbVectifyAI/OpenKB4.8k1 repos~2kAutomated safety check: WarnApache-2.0

Similar skills

  • Knowledge Search

    dataelement/bisheng

    Search the user's knowledge bases and knowledge spaces (企业知识库检索).

    12k GitHub stars~1.1k tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Capture Conversation

    outline/outline

    Save the current conversation, a decision, or a set of notes as a document in an Outline collection; use when the user wants to keep what was discussed in their knowledge base.

    41k GitHub stars~474 tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Find And Cite

    outline/outline

    Answer questions from the Outline knowledge base with quotes and links to the source documents; use when the user asks what the team knows, documented, or decided about a topic.

    41k GitHub stars~537 tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Xhs Virtual Product

    chenjin-cmd/xhs-virtual-product

    This skill helps plan, select, produce, and market Xiaohongshu (RED) virtual/digital products — templates, knowledge bases, test tools, study materials.

    729 GitHub stars~862 tokensUpdated 9 days ago
    Knowledge ManagementAuto-check passed
  • Openkb

    VectifyAI/OpenKB

    A skill your agent uses when the user asks about content in their OpenKB knowledge base — research topics, concepts compiled from their documents, cross-document synthesis — or mentions openkb, an…

    4.8k GitHub starsUsed in 1 repo~2k tokens
    Knowledge ManagementAuto-check: warnings
  • Learn From Materials

    dmoshehun-prog/learn-from-materials

    Turns books, PDFs, slides and web pages into a source-grounded knowledge base and an interactive learning page in English or Chinese, with quizzes, relationship maps and reusable methodology notes.

    947 GitHub stars~7.9k tokensUpdated 3 days ago
    Knowledge ManagementAuto-check passed

More from kingkongshot/Pensieve

  • Pensieve Sync To Main

    kingkongshot/Pensieve

    Sync Pensieve's Chinese development/release branch into the English main branch.

    2.5k GitHub stars~1.1k tokensUpdated 5 mo ago
    Auto-check passed

Questions about Pensieve

What does Pensieve do?

Project knowledge base and workflow router. An agent skill from kingkongshot/Pensieve. Pensieve is an agent skill from kingkongshot/Pensieve. Project knowledge base and workflow router.

When should I use Pensieve?

Pensieve fits situations like: tasks that involve Code quality; tasks that involve CI/CD; tasks that involve Knowledge bases.

How do I install Pensieve in Claude Code?

Run `npx skills add kingkongshot/Pensieve --skill pensieve -a claude-code`. Or copy the skill folder (the kingkongshot/Pensieve repository) into .claude/skills/pensieve in your project. Claude Code loads it when a task matches its description.

How do I install Pensieve in Codex?

Run `npx skills add kingkongshot/Pensieve --skill pensieve -a codex`. Or copy the skill folder (the kingkongshot/Pensieve repository) into .agents/skills/pensieve in your project. Codex loads it when a task matches its description.

Can I use Pensieve in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add kingkongshot/Pensieve --skill pensieve -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pensieve, .gemini/skills/pensieve, .github/skills/pensieve and .opencode/skills/pensieve in your project.

What does Pensieve need to run?

Going by SKILL.md and its folder, Pensieve needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Pensieve access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Pensieve safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Pensieve use?

Pensieve is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pensieve use?

About 436 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Pensieve?

Skills that share tags, products or a category with Pensieve: Knowledge Search (dataelement/bisheng, 12k stars), Capture Conversation (outline/outline, 41k stars), Find And Cite (outline/outline, 41k stars) and Xhs Virtual Product (chenjin-cmd/xhs-virtual-product, 729 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pensieve?

kingkongshot (a GitHub user) maintains it in kingkongshot/Pensieve, which has 2,512 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on May 8, 2026.

Source: kingkongshot/Pensieve on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.