- skills/: remove retired legacy directories gitea-plan, implement-slice, verify-slice, and gitea-pr replaced by GitHub-native projects, implement, and verify - install.sh: update ACTIVE_PORTABLE_SKILLS and OBSOLETE_SKILLS, drop stale gt warning block from check_prerequisites, return exit 1 from check when missing > 0, and prune repo-scoped dangling symlinks under $SCRIPT_DIR/skills/* - tests/fixtures/test_skills_behavioral_contracts.py: retire WorkflowNode/WorkflowEngine mocks and Gitea-only assertions, update all 8 legacy contract blocks for GitHub-native skills, and add coverage for projects, implement, code-review, verify, and isolated install.sh behavior - tests/fixtures/run_regression.sh: run both test_skills_behavioral_contracts.py and test_build_review.py via python3 -m unittest and update Step 3 grep checks to target projects, implement, code-review, and gt-usage
Skills
Modular, harness-agnostic skills for disciplined pair programming with coding agents.
A collection of lightweight, single-purpose skills focused on low context overhead (≤80 lines), minimal ceremony, and user-approved state transitions.
Designed to support critical systems thinking, active learning, disciplined engineering, and durable documentation across any compliant agent platform.
This collection was not designed for a Senior Software Engineer, but for learners, with the primary goal of maximizing long-term learning gains; the idea is to learn to think like a software engineer and architect, rather than simply producing code.
Why Build Instead of Borrow?
There are many great Skills bundles out there, written by and for experienced developers to orchestrate automated "software factories". Many existing agent workflows optimize for experienced developers who want to delegate as much implementation work as possible.
That is a reasonable goal, but it is not mine. As a learner, I need the workflow to preserve opportunities to reason, make decisions, debug, and build mental models.
Copying skills crafted for someone else's workflow imports their cognitive shortcuts, and assumptions. I believe that AI is useful for much more than only producing code.
These skills exist to enforce four core principles:
-
Defeating the Comprehension Illusion: Having an AI generate code is not the same as understanding how a system behaves. When code velocity outpaces comprehension, you end up with systems you cannot debug when production breaks. Skills like
practicemake the learner write the code and drive analysis, ensuring mental models develop alongside the codebase. -
Intentional Epistemic Friction ("Your call"): Great engineering requires deliberate checkpoints. Instead of letting agents make unilateral architectural choices, these skills pause at critical state transitions: requiring proven root causes before patching (
diagnose), gating branch integration and merge readiness (git-manager/verify), or identifying learning opportunities that should be preserved as durable knowledge (document). -
Operational Ownership: An agent should investigate, measure, and propose concrete options, but the human engineer must own the trade-offs, failure domains, and repository history. You cannot own what you did not decide.
-
Radical Simplicity over Prompt Bloat: Many third-party skills are brittle, multi-page prompts that consume context and hallucinate complex state machines. These skills adhere to strict line caps (≤80 lines for portable skills), the deletion test, and minimal ceremony.
The System Architecture
The system is under active testing and continuous improvement. Currently, the skills form an orchestrated pair-programming workflow. build-skill governs meta-level skill design.
Three core operational skills (practice, diagnose, git-manager) structure day-to-day engineering, while a 4-skill GitHub-native delivery loop (projects -> implement -> code-review -> verify) handles planning, slice execution, static review, and merge closeout. document evaluates whether insights produced during work warrant durable preservation, and reconcile-docs keeps canonical repository docs aligned with code and optional GitHub state.
flowchart TD
SB["build-skill<br/>meta-level design"]
subgraph Core["Engineering & Learning Skills"]
PRAC["practice<br/>learn it: Socratic & recall"]
DIAG["diagnose<br/>find out: evidence-first RCA"]
GIT["git-manager<br/>branches, commits & recovery"]
end
subgraph Delivery["GitHub Delivery Loop"]
PROJ["projects<br/>milestones, issues & board"]
IMPL["implement<br/>preflight, workers & Draft PR"]
CR["code-review<br/>4-axis audit & CR-XX reviews"]
VER["verify<br/>QA, CI, promote & merge"]
PROJ --> IMPL --> CR --> VER
end
DOC["document<br/>classify & author: 5 epistemic types"]
REC["reconcile-docs<br/>reconcile: history, code, GitHub, roadmap"]
Storage["Repo docs/ & .internal/"]
SB --> Core
Core --> DOC
Delivery --> REC
DOC --> Storage
Storage --> REC
REC --> Storage
Every skill features an explicit "Your call" checkpoint where the agent pauses and asks the human to make critical architectural, diagnostic, and release decisions with 2-3 concrete options.
Active Skills
Portable Core (skills/)
| Skill | Trigger / Command | Purpose | Length |
|---|---|---|---|
practice |
/practice [topic], /practice review |
Socratic tutoring and delayed retrieval. Learner writes all code; uses graduated assistance, rubric calibration, and recall-before-reveal in gitignored .internal/practice/. |
51 lines |
diagnose |
/diagnose [symptom] |
Evidence-first troubleshooting. Progresses from raw logs to proven root cause and minimal, reversible fixes. | 49 lines |
git-manager |
/git-manager |
Repository hygiene, branch and worktree lifecycle, incremental Conventional Commits (autonomous on working branches in delivery mode; user-authored in learning mode), integration, conflict stops, and evidence-first reflog recovery. | 67 lines |
projects |
/projects |
Outer-loop GitHub planning: translates goals and specs into GitHub Milestones, Issues, and the canonical 5-column Projects v2 board with tiered sizing and zero-context reproducibility audits. | 75 lines |
implement |
/implement |
Orchestrates a ready GitHub vertical-slice issue via preflight checks, Step 1 delta-test decomposition, branch-scoped checkpointing, adaptive test-writer/code-writer workers, 1:1 commits, and Draft PR publishing. |
78 lines |
code-review |
/code-review |
Inspects diffs and open GitHub PRs across four isolated axes (Spec & Scope, Standards & Smells, Seam & Test Integrity, Defensive Invariants), publishing monotonic CR-XX reviews and RV-* runtime checks via build_review.py. |
78 lines |
verify |
/verify |
Runs black-box runtime QA and remote CI inspection against verdict=ready PRs, posts the verification ledger, promotes Draft PRs (gh pr ready, Work in Progress -> Review), and executes human-gated merge closeout (Review -> Completed). |
75 lines |
gt-usage |
/gt-usage |
Standalone ad-hoc Gitea CLI (gt) utility outside the GitHub core delivery loop for querying or mutating Gitea entities and configuring sovereign Gitea remotes. |
45 lines |
document |
/document |
Second-order knowledge classifier (Discussion, ADR, Plan, Debug Record, Knowledge) scoped to the active repository's docs/ (or .internal/). User confirms type and provides core insight. |
55 lines |
reconcile-docs |
/reconcile-docs [path] |
Reconciles historical evidence, present code reality, optional read-only GitHub delivery state, and future plans into canonical repo docs (README, ARCHITECTURE, docs/adr/, ROADMAP, docs/designs/*.md). |
45 lines |
build-skill |
/build-skill [topic] |
Interactive design, sizing, authoring, and empirical dogfooding of agent skills. Enforces design review gate before file creation. | 50 lines |
derive-skill |
/derive-skill <url-or-path> |
Evaluates an external skill (source, license, scripts), sorts material into preserve/adapt/reject, and decides new skill, merge, or reject. Hands an approved derivation brief to build-skill. |
58 lines |
inspect-flake-update |
/inspect-flake-update |
Inspects updated flake.lock inputs, reviews upstream revisions, runs nix flake check, and drafts commit messages. | 46 lines |
nix-devshell |
/nix-devshell |
Authors, extends, validates, and troubleshoots project Nix development shells from repository evidence. | 76 lines |
tdd |
/tdd |
Guides red-green test-driven development (Mode A) and test-suite hardening (Mode B) through public interface seams, boundary-only mocking, and non-tautological assertions. | 42 lines |
Skill Interaction Matrix
| From \ To | Practice | Diagnose | Git Manager | Document | Reconcile Docs |
|---|---|---|---|---|---|
| Practice | - | yields for production incidents | learner writes message & runs commit | optional handoff on key insights | - |
| Diagnose | yields if user wants to find cause | - | branches, commits fix & recovers | hands off if RCA reveals non-obvious lesson | - |
| Git Manager | learner-controlled in practice/learning | manages branches & packages fixes | - | delegates if commit warrants deeper doc | provides commit history |
| Document | consumes practice milestones | consumes RCA findings | commits docs in repo docs/ |
- | provides ADRs and plans |
| Reconcile Docs | - | - | verifies commit reality & commits docs | audits ADRs, discussions, and plans | - |
Canonical Flows
- Investigation to History:
diagnose(verify root cause) ->git-manager(checkpoint commit) ->document(optional Debug Record / ADR indocs/). - Deliberate Practice to Knowledge:
practice(solve transfer challenge, log in.internal/practice/) ->document(optional durable knowledge article indocs/knowledge/). - Documentation Reconciliation:
reconcile-docs(audit repo history, code reality, optional read-only GitHub state, roadmap) -> propose updates toREADME/ARCHITECTURE/docs/adr//ROADMAP/docs/designs/*.md-> user approves. - Skill Design Loop:
build-skill(approve spec) -> dogfood run -> minimal mechanism refinement. - Branch Lifecycle & Integration:
git-manager(branch-before-edits or isolated worktree) -> implementation & incremental checkpoint commits ->code-review/verify->git-manager(rebase or integration). - GitHub Delivery Loop:
projects(tiered sizing, 5-column Projects v2 board, milestones, & falsifiable acceptance criteria) ->implement(preflight, Step 1 delta-test decomposition, branch-scoped checkpointing, adaptivetest-writer/code-writerworkers, & Draft PR) ->code-review(4-axis static audit, monotonicCR-XXPR reviews viabuild_review.py, &RV-*runtime checks) ->verify(black-box runtime QA, remote CI inspection,gh pr ready+Work in Progress -> Review, human-gated merge, &Review -> Completed).
Installation & Portability
CLI Prerequisites
git: required for all repository, branch, and worktree workflows.gh(GitHub CLI): primary forge CLI for the 4-skill GitHub delivery loop (projects,implement,code-review,verify) and optional read-only GitHub ingestion inreconcile-docs(authenticated withrepoandprojectscopes).gt(Gitea CLI): optional standalone CLI required only if usinggt-usagefor ad-hoc Gitea operations outside the GitHub delivery loop.
The repository includes an idempotent install script (install.sh) supporting both symlink and copy modes:
# Default install to ~/.gemini/config/skills (symlink mode)
./install.sh
# Verify installation health and detect missing skills
./install.sh check
# Install to custom harness path in copy mode
./install.sh --mode copy --target ~/.custom-agent/skills
When run:
- Portable skills and active extensions are linked/copied to the target directory.
- Retired legacy Gitea skills (
gitea-plan,implement-slice,verify-slice,gitea-pr) and other obsolete skills are safely relocated to a dated backup directory (skills.backup-<date>). - The global profile
profile/AGENTS.mdis installed as the user's base agent instruction.
Behavioral Regression Testing
To ensure portable skills and GitHub delivery integrations maintain behavioral invariants across updates, run the deterministic regression test harness:
# Run full behavioral contract and invariant test suite
./tests/fixtures/run_regression.sh
Validates:
- Dynamic GitHub Projects v2 and milestone ID resolution rules (forbidding hardcoded Node IDs or guessed milestone numbers).
- Single-owner 5-column board state machine (
Backlog -> Ready -> Work in Progress -> Review -> Completed) acrossprojects,implement, andverify. implementpreflight classifications,--dry-runzero-mutation contract, branch-scoped checkpointing, and OS-level non-interactive worker timeouts.code-reviewbuild_review.pymonotonicCR-XXpublishing,cr-review-metastamping, diff-hunk validation, and exit codes.verify3-phase QA/CI/promotion/merge closeout andreconcile-docsread-only GitHub ingestion.- Skill line caps (≤80 lines), em-dash absence, valid relative markdown links, and path portability.
Governing Design Rules
- One authoritative owner per rule. If a rule belongs in
AGENTS.md, do not restate it in every skill. - The deletion test. If deleting an instruction does not change agent behavior in a meaningful way, delete it.
- Plain words over jargon. Prefer "decision" over "epistemic commitment", "steps" over "state machine".
- 80 lines maximum for
SKILL.md. Deep templates and authoring specs live inreferences/. - Human ownership of critical decisions. The AI investigates, drafts, and proposes; the human approves the architecture, branch merges/releases, and document destinations.
License
Released into the public domain under the Unlicense.