skill
pkbllm
Personal Knowledge Base for better LLM–Human interaction
Set up
Skills are installed by placing their folder where your agent loads skills.
The download comes from github.com/uv-xiao/pkbllm itself, not from our server, so what you get is exactly what its author published.
Install instructions come from the README
README
synced Oct 23, 2026pkbllm — Personal Knowledge Base for better LLM–Human interaction
pkbllm is a curated repository of agent skills (reusable instruction sets) and a lightweight
knowledge organization scheme designed to improve LLM–human interaction:
- Humans use LLMs more effectively by invoking the right skill at the right time.
- LLMs keep human-facing artifacts organized so you can iterate without losing context.
This repo is compatible with the Skills CLI (npx skills) and maintains a clean separation between
canonical skill sources and the generated distribution mirror.
What this enables
For humans
- A repeatable workflow for generating and maintaining materials (slides, paper notes, exercises).
- A stable place (
$HUMAN_MATERIAL_PATH) where outputs live, independent of the pkb repo checkout.
For LLM agents
- A reliable “operating system” of skills (
uv-*) covering planning, execution, review, research, and human-facing production. - Conventions for where to put outputs and where to put bulky downloads/clones.
Visual overview
flowchart LR
KB["Knowledge base (pkbllm)<br/>skills + conventions + notes"] -->|"invoke the right skill"| AG["LLM agent"]
AG -->|"generate learning artifacts"| OUT["$HUMAN_MATERIAL_PATH/research/<topic>/<br/>report + figures + notes"]
AG -->|"generate practice"| EX["$HUMAN_MATERIAL_PATH/exercises/<topic>/<br/>programming + modeling"]
AG -->|"cache sources (gitignored)"| REF["$HUMAN_MATERIAL_PATH/.references/<br/>pdfs/ arxiv/ repos/"]
OUT -->|"read & internalize"| H["Human"]
EX -->|"practice & check answers"| H
H -->|"better prompts + constraints"| AG
H -->|"apply in project/research"| WORK["Project / research work"]
WORK -->|"new questions + new sources"| AG
AG -->|"extract & codify improvements"| KB
Quickstart
List available skills:
npx skills add . --list
Install all skills to Codex (project scope):
npx skills add . -a codex --skill '*' -y
Notes:
- Always specify a single target agent via
-a(e.g.-a codex). Avoid installing “for all agents”, which can create a pile of local tool-state folders (now gitignored). - Prefer project-scope installs over global installs unless you intentionally want user-level state.
See INSTALL.md for more install options and environment variables.
How to use this repo (recommended workflow)
-
Start a session by using
uv-using-pkbto discover the right skill(s). -
If you generate human-facing artifacts, initialize a dedicated materials repo once:
- Use
uv-init-human-material-repoto create$HUMAN_MATERIAL_PATHwith expected structure.
- Keep outputs organized:
- Tracked outputs:
$HUMAN_MATERIAL_PATH/{slides,research,manuscripts,exercises}/... - Downloads/clones (gitignored):
$HUMAN_MATERIAL_PATH/.references/{pdfs,arxiv,repos}/...
- Adjust paths if needed:
- Repo override:
$HUMAN_MATERIAL_PATH/.agents/config.toml - User default:
~/.agents/config.toml
Repo layout (canonical vs generated)
Canonical (curated) skill sources:
common/— shared cross-domain skills (e.g. “how to use pkb”)productivity/— engineering workflow skillsknowledge/— domain and research skillshuman/— skills for generating human-facing materialsbootstrap/— scripts to maintain this repo
Generated distribution mirror:
skills/— generated mirror of all skills fornpx skillsconsumers (do not edit)
Reference clones (optional, local only):
.references/— one-time upstream clones used for importing; skills evolve in this repo afterward
Maintaining the skills/ mirror (contributors)
After adding/editing canonical skills, regenerate the mirror and refresh README indexes:
python bootstrap/scripts/update_skills_mirror.py all
Skill evaluation (contributors)
This repo includes a systematic skill evaluation harness:
- Documentation:
evals/skill_evaluation.md - Static linting (CI-safe, no LLM calls):
python bootstrap/scripts/lint_skills.py --check-evals - LLM-backed evals (requires configured
codex):python bootstrap/scripts/run_skill_evals.py --suite explicit --max-cases 1 --write-progress
Eval outputs are written under artifacts/skill-evals/ (gitignored).
AGENTS.md assembly (recommended for real tasks)
For real projects, “skills” are often more useful as passive notes embedded into a repo’s AGENTS.md so any agent run starts with the right context.
This repo ships a small CLI that recommends relevant uv-* skills for a task and injects the selected SKILL.md bodies into a marked section in your project’s AGENTS.md:
python /path/to/pkbllm/bootstrap/scripts/pkb_agents_md.py recommend --query "<task>"
python /path/to/pkbllm/bootstrap/scripts/pkb_agents_md.py assemble --query "<task>" --agents-md ./AGENTS.md --pick --init
This workflow is inspired by Vercel’s findings that passive, in-band AGENTS.md context can outperform opt-in “skills” in agent evals (and the Next.js agents-md tooling that injects an index into AGENTS.md). See:
- https://vercel.com/blog/agents-md-outperforms-skills-in-our-agent-evals
- https://github.com/vercel/next.js/pull/88961
License
- Repository license:
LICENSE - Third-party notices:
THIRD_PARTY_NOTICES.md
| Path | Type | Description |
|---|---|---|
common/ | dir | Shared cross-domain skills |
knowledge/ | dir | Domain and research skills |
productivity/ | dir | Engineering workflow skills |
human/ | dir | Skills for human-facing materials |
bootstrap/ | dir | Repository maintenance scripts |
skills/ | dir | Generated Skills-CLI mirror (do not edit) |
INSTALL.md | file | Installation instructions |
LICENSE | file | Repository license |
THIRD_PARTY_NOTICES.md | file | Third-party notices and licenses |