docs / skills

Skills

Turn what you keep asking your assistant, and what it keeps getting wrong, into Claude Code skills.

A skill is a Markdown file, .claude/skills/<name>/SKILL.md, with a name, a description and instructions. Claude Code loads skills from ~/.claude/skills/ and from .claude/skills/ in the current project. You run one as /<name>, and Claude also uses it when a request matches its description.

PromptConduit makes skills in two ways:

Local skillsPlatform and team skills
AccountNoneSigned in, with sync on
ReadsTranscripts on your diskYour synced sessions, or your whole team's
FindsWorkflows you repeatCommands that fail and the fix that worked, then workflows you repeat
EvidenceA confidence scoreQuoted excerpts and a last-checked date
After you adopt oneNothingA daily health check and a before-and-after cost report

Generate skills locally

promptconduit skills generate --local reads your transcripts, asks a model to find the workflows you repeat, and writes each one as a skill. Nothing goes to PromptConduit.

Before you begin

  • At least 5 sessions in one of Claude Code, OpenAI Codex CLI or GitHub Copilot CLI. Hooks aren't needed.
  • A model to run the analysis, picked in this order: the claude command on your PATH (your Claude Code subscription, Haiku model), then ANTHROPIC_API_KEY (Claude Haiku 4.5), then OPENAI_API_KEY (gpt-4o-mini).

Step 1: Preview

Run this inside the repo you want skills for:

bash
promptconduit skills generate --local --dry-run

It lists each skill it would write, with its type, confidence and description, and the folder it would write to. Nothing is written and no transcript is marked as analyzed.

Step 2: Write the skills

bash
promptconduit skills generate --local
output
Analyzing 47 local transcripts (my-project)...
Using Claude Code (claude CLI).

Detected 3 skills:

  /ci-monitor  (workflow, 91%)
    CI Monitor
    Check CI status and iterate until green.
    → Written to: /Users/you/code/my-project/.claude/skills/ci-monitor/SKILL.md
  ...

Where the skills go depends on where you run it:

  • Inside a git repo: <repo root>/.claude/skills/, from conversations in that repo only.
  • With --repo '': ~/.claude/skills/, from every project.
  • With --repo my-project: conversations from the directory named my-project.

Start a new Claude Code session and type / to see them. --tool claude-code (or codex, copilot) reads one assistant's transcripts only.

Step 3: Review and edit

Each file is plain Markdown you can change:

SKILL.md
---
name: ci-monitor
description: "Check CI status and fix failures until green. Prompts like: 'how is CI doing?', 'check if CI is passing', 'fix the failing tests in CI'"
---

Check CI pipeline status and fix failing jobs until green.

## When to Use
When CI is failing or you need the pipeline green before merging.

## Steps
1. Run: gh run list --limit 10
2. For failures: gh run view RUN_ID --log-failed
3. Fix errors, re-run: gh run rerun --failed RUN_ID
4. Repeat until all checks pass.

## Example
/ci-monitor

---
*Generated locally by PromptConduit · Confidence: 90%*
  • Swap in your real commands and narrow the description, so the skill triggers only when you want it.
  • A later run that finds a skill with the same name overwrites its SKILL.md. Rename a skill you've customized, or commit project skills to git.
  • To remove one, delete its folder, for example rm -r .claude/skills/ci-monitor. promptconduit skills uninstall only removes skills installed from the platform.

How local generation works

  1. It reads transcripts from each assistant's own folder, newest first (table below).
  2. It keeps the conversations in scope, then the newest 50 of those.
  3. It skips the ones an earlier run analyzed, tracked by hash in ~/.config/promptconduit/local_skills_state.json. --force analyzes them again.
  4. It needs at least 5 conversations left to find patterns.
  5. It sends one request to the model, asking for 3 or 4 workflows, and writes each as a skill with a type: workflow, command, template or checklist.
AssistantTranscripts
Claude Code~/.claude/projects/**/*.jsonl
OpenAI Codex CLI~/.codex/**/*.{jsonl,json}
GitHub Copilot CLI~/.copilot/{session-state,history-session-state}/**/*.{jsonl,json}

Cursor and Gemini CLI transcripts aren't used for local skills.

What the model sees

For each conversation: its title and summary, the tool-call and message counts, and your first three prompts, each cut to 120 characters. The repo name is included when the run is scoped. Tool output, file contents and the assistant's replies aren't sent. With the claude command the request runs under your Claude Code login with session persistence off. With an API key it goes to Anthropic or OpenAI under that key's terms.

If local generation stops

MessageWhat to do
no AI provider foundInstall Claude Code, or export ANTHROPIC_API_KEY or OPENAI_API_KEY in this shell.
no transcripts foundNone of the assistants above has saved a session yet. Use one for a few sessions, or check --tool.
no transcripts found for repo "…"The repo name it detected doesn't match the folder your sessions ran in, as happens with worktrees and renamed clones. Pass --repo with the folder name, or --repo '' for every project.
Need at least 5 conversations…Fewer than 5 conversations are in scope. Widen it with --repo '', or come back after more sessions.
Only N new transcript(s) since last analysis…Most of the conversations in scope were analyzed before. Add --force to analyze them all again.
No new transcripts to analyze.The newest 50 conversations in scope were all analyzed before, even if older ones weren't. Add --force.
claude CLI error: …Run claude once to check you're signed in. To use an API key instead, run from a shell where claude isn't on your PATH.

Skills from your synced sessions

With an account, PromptConduit finds skills in the sessions you sync, backs each one with quoted evidence, and keeps checking them after you adopt them.

Before you begin

  • Sign in with promptconduit login, with sync on. See the Quickstart.
  • Some synced history. Hooks sync each session as you go. To upload older transcripts, run promptconduit sync.

Step 1: See your patterns

bash
promptconduit skills patterns

Patterns come in two kinds, ranked in this order:

  • Failure and fix. A shell command that failed, and the different command that worked right after it in the same session, seen across several sessions. For example, npm test fails in this repo and pnpm test works. These rank first because real failures back them.
  • Repeated requests. Themes you keep asking for, grouped from your prompts.

Each pattern carries its evidence: short excerpts it was built from, such as the failed command, its error and the fix, plus when it was last checked. A skill made from patterns keeps up to six of them. Excerpts are redacted, and they're dropped when the events they quote pass the 90-day retention window.

Step 2: Generate and approve

bash
promptconduit skills generate
promptconduit skills list --filter new
promptconduit skills approve ci-monitor

New skills wait for your approval. skills reject moves one to the removed list, and skills delete hides it from every list. You can also review them on the Skills page in the web app.

Step 3: Install

bash
promptconduit skills install ci-monitor

This writes .claude/skills/ci-monitor/SKILL.md. A skill tied to a repo goes into that repo when you run it inside a clone, and into ~/.claude/skills/ otherwise. --scope project or --scope global picks for you, and --all installs every approved skill.

promptconduit skills uninstall ci-monitor removes it, unless you've edited the file since. --force removes it anyway.

Run this in a clone of the repo:

bash
promptconduit skills sync --org acme

It pulls every teammate's approved skills for this repo, merged, into the checkout:

  • .claude/skills/INDEX.md, one line per skill. It's capped at 60 lines and 4 KB, so it stays a short list that's cheap to load in every session.
  • .claude/skills/<name>/SKILL.md for each skill, with the details.

Team skills that left the bundle are removed, unless you edited them. Files you edited are kept unless you pass --force. Run it again whenever you want the latest.

promptconduit skills install --org acme does the same. Outside a clone, or for a different repo, add --repo api; it only works together with --org.

Note

promptconduit skills sync without --org is the older format: it writes each approved skill as a command file in ~/.claude/commands/. Use skills install for SKILL.md files.

Keep skills current

A wrong skill does harm in every session that reads it. Once a day PromptConduit re-checks each approved skill against new sessions and flags it as may be outdated when one of these is true:

FlagWhen
UnusedApproved at least 30 days ago, and not run in the last 30 days.
FailingAt least half of its runs failed, out of 3 or more.
A command it names failsA command the skill tells the agent to run failed in 2 or more sessions since approval, more often than it worked.
A command looks goneThe same, and the error says the command doesn't exist.
Not helpfulPeople marked the patterns behind it not helpful at least twice, and more often than helpful.

Each flag states its numbers. You decide what to do:

bash
promptconduit skills list --filter outdated
promptconduit skills keep ci-monitor
promptconduit skills retire old-deploy
  • Update the skill, or generate it again.
  • Keep it as it is. This hides the flags for 30 days.
  • Retire it. It leaves your skill lists, but installed files stay: remove them with promptconduit skills uninstall.

See what skills changed

bash
promptconduit skills impact

For each repo, this compares your sessions in the 60 days before and after the first skill that applies to it. The split is at approval or first use, whichever came first. It compares the medians of turns, tokens and cost per session, the tool-error rate, and an estimated saving a month.

It's a correlation, not proof, so it shows the sample sizes. A repo needs at least 5 priced sessions on each side before it gets an estimate. Until then it says how many it has.

Tip

Every step here is also an MCP tool, so you can ask your agent to "show my outdated skills" or "install the team's skills for this repo". See AI agents (MCP).

Next steps