Pensieve: Skill for Codex

.codex/skills/pensieve-sync-to-main/SKILL.md

pensieve-sync-to-main is a skill for Codex from kingkongshot/Pensieve. It costs 78 tokens per session (1,036 once invoked), scanned A, original, MIT.

A release procedure for merging Pensieve's Chinese development or release branch into its English main branch.

In plain words
What is it for?
Use it to publish Chinese-branch changes to main, translate README files and other specified text, and handle the normal zh-to-main release flow.
Why use it?
It keeps the release branch English-only while preserving contributor history and preventing code logic from diverging between language branches.

Skill for Codex

Written for Codex: agents/openai.yaml present.

This is kingkongshot/Pensieve's own configuration. It tells Codex how to work on Pensieve itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Pensieve configures →

About the project

Pensieve is a skill that gives an AI coding agent continuously growing project memory by storing conventions, decisions, facts, workflows, and lessons for later use. It helps agents make more consistent plans and choices without repeatedly loading an entire project history. The catalogue entries are Pensieve skills and agents that provide this memory workflow.

kingkongshot/Pensieve · 2,516 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to kingkongshot/Pensieve. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kingkongshot/Pensieve/main/.codex/skills/pensieve-sync-to-main/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/kingkongshot/Pensieve

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pensieve-sync-to-main

README.md
[![agentmods](https://agentmods.dev/badge/skills/kingkongshot/pensieve/pensieve-sync-to-main/github.svg)](https://agentmods.dev/skills/kingkongshot/pensieve/pensieve-sync-to-main)
Your own site
<a href="https://agentmods.dev/skills/kingkongshot/pensieve/pensieve-sync-to-main"><img src="https://agentmods.dev/badge/skills/kingkongshot/pensieve/pensieve-sync-to-main/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pensieve-sync-to-main

Your own site · 80×15
<a href="https://agentmods.dev/skills/kingkongshot/pensieve/pensieve-sync-to-main"><img src="https://agentmods.dev/badge/skills/kingkongshot/pensieve/pensieve-sync-to-main.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,036 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium System Prompt Leakage · line 81
    Skill contains patterns that could indirectly extract system prompts through rephrasing, translation, summarization, or side-channel techniques.
    Fix: Guard against indirect extraction by refusing to summarize, translate, or rephrase system instructions. Add explicit anti-extraction clauses.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00078 $0.01036
Opus 5 $0.00039 $0.00518
Sonnet 5 $0.00016 $0.00207
Haiku 4.5 $0.00008 $0.00104

Measured 13d ago against content hash b2d6eb5ca2c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

pensieve-sync-to-main scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.codex/skills/pensieve-sync-to-main/SKILL.md · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pensieve Sync to Main

Use only inside the Pensieve repository itself.

This skill syncs changes from experimental or zh into main, preserves contributor history, and ensures main remains the English release branch. This is a maintainer release flow, not a default pipeline that should be seeded into every Pensieve user project.

Hard Rules

  • main must remain English-only and release-grade.
  • Preserve source-branch commit history; do not squash contributor history unless the user explicitly asks.
  • Code logic must stay identical across language branches; only text content may differ.
  • Do not translate code identifiers, paths, protocol names, command names, frontmatter keys, or Markdown link targets unless the branch rules below explicitly require it.
  • When the worktree has unrelated local changes, do not run destructive git cleanup commands.

Branch Strategy

  • experimental: development branch
  • zh: Chinese release branch
  • main: English release branch

Default source branch is zh unless the user explicitly specifies experimental. Default remote is kingkongshot.

Translation Scope

Chinese content in these files must be translated into English:

  • README.md
  • SKILL.md
  • .src/references/*.md
  • .src/tools/*.md
  • .src/templates/**/*.md

These files are synced directly by default; translate only if user-visible Chinese appears on the English branch:

  • Scripts and code
  • JSON/YAML configuration
  • Deleted files
  • Binary assets

Workflow

1. Confirm scope

  1. Check current state:
    git branch --show-current
    git status --short
    git remote -v
    
  2. Confirm source branch:
    git fetch kingkongshot
    git diff --stat main..kingkongshot/<source-branch>
    
  3. Classify changed files as: needs translation, direct sync, deletion, binary/config.
  4. If the worktree has unrelated local changes, report them before switching branches.

2. Create sync branch

  1. Start from latest main:
    git checkout main
    git pull kingkongshot main
    git checkout -b sync/zh-to-main-<date>[-topic]
    
  2. Merge the source branch to preserve history:
    git merge kingkongshot/<source-branch> -X theirs --no-edit
    
  3. If the user explicitly asks to sync only a few files, use targeted checkout:
    git checkout kingkongshot/<source-branch> -- <file>
    
  4. Resolve conflicts before translating.

Read the full file on GitHub · 124 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 124 lines · 78 tokens per session scan A b2d6eb5ca2c2

Subscribe to this mod's changes

pensieve-sync-to-main is a skill published in the GitHub repository kingkongshot/Pensieve (2,516 stars, last pushed 4mo ago), licensed MIT. It adds 78 tokens to every session and 1,036 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.