Selfskills logo

Selfskills

Community
bacnh85
selfskills

Use when improving pi skills with skill_manage (list/read/patch/create/write/delete/restore). Patch gaps same-turn with minimal diffs; create only recurring procedures.

Overview

Publisherbacnh85
Repositorypi-extensions
Skill nameselfskills
Stars
42
Forks
15
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by bacnh85 on GitHub. Read the source before you install it.

Installation

Install the Selfskills AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/bacnh85/pi-extensions/tree/main/pi-selfskills/skills/selfskills
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bacnh85/pi-extensions.git /tmp/pi-extensions
mkdir -p .claude/skills
cp -r /tmp/pi-extensions/pi-selfskills/skills/selfskills .claude/skills/selfskills
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Selfskills in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Selfskills on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Selfskills is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Skill self-improvement discipline

You can improve the skills loaded into this session with the skill_manage tool. This skill is the long-form version of the injected standing rules; the short block in your system prompt wins on conflicts.

Default: patch by exception

Most tasks end with no skill write. A write is warranted only when all of these hold:

  1. The skill itself was part of the task (you read or followed it).
  2. The gap is a reusable procedure, not a one-off task detail.
  3. The fix addresses the skill's root cause — a wrong or missing rule — not a symptom you happened to hit.

If any answer is no, note the gap to the user and move on. One-off task details, environment quirks, and always-on facts belong in memory (evolve/munin), never in skills.

Patching (skill_manage patch)

  • Same turn. Patch the moment the gap surfaces, while the exact wording is still in context. Do not defer to "later".
  • Read first. Patches are refused unless the file was read this session (skill_manage read or the read tool). If the file changed on disk since that read, the patch is refused (hash mismatch) — re-read and re-apply against the current content instead of forcing.
  • Smallest unique edit. old_string must occur exactly once — include just enough surrounding text to disambiguate. Never rewrite a whole skill file; if you're tempted to, the change is probably not a patch.
  • Keep the frontmatter honest. The description is the load gate: if the patch changes what the skill does or when it applies, patch the description in the same pass. First ~57 chars must stand alone as a trigger: "Use when X. One-line behavior."
  • Nothing is lost. Every patch snapshots the original to the backup dir; restore reverts if a patch turned out wrong.

Extend, don't fork (skill_manage write)

Content that doesn't fit the SKILL.md body goes into bundled files: write with file: "references/<topic>.md" (also scripts/, assets/), then patch the body to point at it. Wrap dependent changes in one operations[] batch — it validates everything first and commits together, so a half-applied state is impossible. Extend an existing references file by topic before creating a sibling skill.

Deleting (skill_manage delete)

Dedup needs lifecycle closure. Delete dead bundled files (with file:) or whole dead skills (omit file:) — every deletion is fully snapshotted and restorable. Read the skill first; deletion refuses on a stale read.

Creating (skill_manage create)

Judgment, not counting. Create only when the knowledge is:

  • Procedural — steps/rules someone would follow again.
  • Non-trivial to rederive — it cost real debugging or a correction loop.
  • Plausibly recurring — a different future task would plausibly hit it.

Over-eager creation is a rot vector: redundant skills dilute routing for the real ones. Names are lowercase-hyphen, 1–64 chars. Body is imperative — one rule per lesson, no incident narration, never secrets.

Lifecycle

  • New skills auto-load next session; skill_manage create returns the path — read it immediately to apply the new skill in the current session.
  • list marks each skill patchable or read-only. Package and node_modules skills are read-only, as are project skills in untrusted projects.
  • Writable roots: <agentDir>/skills, <cwd>/.pi/skills (trusted projects), project .agents/skills (trusted projects, within the git boundary), local (repo-checkout) package skills, plus the selfskills.skillsDir override. Everything else is refused.

Frequently asked questions

What does the Selfskills AI skill do?

Use when improving pi skills with skill_manage (list/read/patch/create/write/delete/restore). Patch gaps same-turn with minimal diffs; create only recurring procedures.

Why use Selfskills on TypingMind?

Because you install it once and use it with any model. Selfskills is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Selfskills in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/bacnh85/pi-extensions/tree/main/pi-selfskills/skills/selfskills. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Selfskills?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Selfskills?

As many as you like. As long as a model supports skills, you can use Selfskills with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Selfskills AI skill free?

It is published on GitHub by bacnh85. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇