Compare commits
2
Commits
5881541a82
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6c0210ecd1 | ||
|
|
7c482fe3ca |
No files matched your search
@@ -73,14 +73,15 @@ Every skill features an explicit **"Your call"** checkpoint where the agent paus
|
||||
|
||||
| Skill | Trigger / Command | Purpose | Length |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **[`practice`](skills/practice/SKILL.md)** | `/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 |
|
||||
| **[`practice`](skills/practice/SKILL.md)** | `/practice [topic]`, `/practice review` | Socratic tutoring, delayed retrieval, and hands-on Build-and-Break (`project-labs.md`: Ugly Heartbeat, primary specs, 30-line `scratch/` labs), Predict-Before-Run, and Code-Tracing drills with rubric calibration in gitignored `.internal/practice/`. | 57 lines |
|
||||
| **[`diagnose`](skills/diagnose/SKILL.md)** | `/diagnose [symptom]` | Evidence-first troubleshooting. Progresses from raw logs to proven root cause and minimal, reversible fixes. | 49 lines |
|
||||
| **[`git-manager`](skills/git-manager/SKILL.md)** | `/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`](skills/projects/SKILL.md)** | `/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`](skills/implement/SKILL.md)** | `/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`](skills/code-review/SKILL.md)** | `/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`](skills/verify/SKILL.md)** | `/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`](skills/gt-usage/SKILL.md)** | `/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 |
|
||||
| **[`gitea-to-github`](skills/gitea-to-github/SKILL.md)** | `/gitea-to-github` | On-demand cutover skill migrating standalone Gitea repos or `--org` batches to GitHub primary with a Gitea pull mirror, translating `.gitea/workflows/` to `.github/workflows/`, rewriting `AGENTS.md`, and migrating open issues idempotently. | 42 lines |
|
||||
| **[`gt-usage`](skills/gt-usage/SKILL.md)** | `/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. | 46 lines |
|
||||
| **[`document`](skills/document/SKILL.md)** | `/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`](skills/reconcile-docs/SKILL.md)** | `/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`](skills/build-skill/SKILL.md)** | `/build-skill [topic]` | Interactive design, sizing, authoring, and empirical dogfooding of agent skills. Enforces design review gate before file creation. | 50 lines |
|
||||
@@ -111,6 +112,7 @@ Every skill features an explicit **"Your call"** checkpoint where the agent paus
|
||||
4. **Skill Design Loop**: `build-skill` (approve spec) -> dogfood run -> minimal mechanism refinement.
|
||||
5. **Branch Lifecycle & Integration**: `git-manager` (branch-before-edits or isolated worktree) -> implementation & incremental checkpoint commits -> `code-review` / `verify` -> `git-manager` (rebase or integration).
|
||||
6. **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, adaptive `test-writer`/`code-writer` workers, & Draft PR) -> `code-review` (4-axis static audit, monotonic `CR-XX` PR reviews via `build_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`).
|
||||
7. **Gitea-to-GitHub Cutover**: `gitea-to-github` (dry-run inventory, backup snapshot, PR gate, `new-repo --empty --no-mirror --no-clone` push, `.gitea/workflows/` -> `.github/workflows/` & `AGENTS.md` translation, idempotent issue migration, archive rename, and `new-repo --gitea-mirror` pull-mirror swap) -> `projects` / `implement`.
|
||||
|
||||
---
|
||||
|
||||
@@ -118,8 +120,9 @@ Every skill features an explicit **"Your call"** checkpoint where the agent paus
|
||||
|
||||
### 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 in `reconcile-docs` (authenticated with `repo` and `project` scopes).
|
||||
- **`gt` (Gitea CLI)**: optional standalone CLI required only if using `gt-usage` for ad-hoc Gitea operations outside the GitHub delivery loop.
|
||||
- **`gh` (GitHub CLI)**: primary forge CLI for the 4-skill GitHub delivery loop (`projects`, `implement`, `code-review`, `verify`), `gitea-to-github`, and optional read-only GitHub ingestion in `reconcile-docs` (authenticated with `repo` and `project` scopes).
|
||||
- **`gt` (Gitea CLI)**: optional CLI required for `gt-usage` (ad-hoc Gitea operations) and `gitea-to-github` (Gitea-to-GitHub cutover).
|
||||
- **`new-repo`**: optional repo-provisioning CLI used by `gitea-to-github` (`--empty --no-mirror --no-clone` and `--gitea-mirror`).
|
||||
|
||||
The repository includes an idempotent install script (`install.sh`) supporting both symlink and copy modes:
|
||||
|
||||
@@ -156,6 +159,8 @@ Validates:
|
||||
- `implement` preflight classifications, `--dry-run` zero-mutation contract, branch-scoped checkpointing, and OS-level non-interactive worker timeouts.
|
||||
- `code-review` `build_review.py` monotonic `CR-XX` publishing, `cr-review-meta` stamping, diff-hunk validation, and exit codes.
|
||||
- `verify` 3-phase QA/CI/promotion/merge closeout and `reconcile-docs` read-only GitHub ingestion.
|
||||
- `gitea-to-github` safety flags, archive-before-mirror ordering, CI security guards, `<!-- gitea-origin: ... -->` idempotency, sibling handoffs, and `profile/AGENTS.md` zero-network session-start opt-out.
|
||||
- `practice` Build-and-Break (`project-labs.md`), Predict-Before-Run, Code-Tracing, and `Reasoning trap` contracts.
|
||||
- Skill line caps (≤80 lines), em-dash absence, valid relative markdown links, and path portability.
|
||||
|
||||
---
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# `gitea-to-github` Migration Skill Design
|
||||
|
||||
* **Author:** kiskaadee
|
||||
* **Status:** Draft
|
||||
* **Status:** Implemented
|
||||
* **Date:** 2026-11-26
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# GitHub-Centered Delivery Ecosystem Redesign
|
||||
|
||||
* **Author:** kiskaadee
|
||||
* **Status:** Proposed
|
||||
* **Status:** Implemented
|
||||
* **Date:** 2026-11-25
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
@@ -20,15 +20,21 @@ description: >-
|
||||
`docs/` if present). If any exist, surface up to 3 and ask whether to review one or start a
|
||||
new topic. When reviewing, execute recall-before-reveal per
|
||||
[references/revisit-protocol.md](references/revisit-protocol.md).
|
||||
2. **Establish target.** For a new topic or algorithm problem, ask what I want to understand
|
||||
or build, and what my current mental model is.
|
||||
2. **Establish target.** For a new topic, stretch build, code-tracing drill, or algorithm
|
||||
problem, ask what I want to understand or build and what my current mental model is. For
|
||||
stretch builds, isolation labs, or code-tracing, read
|
||||
[references/project-labs.md](references/project-labs.md) and start with an **ugly heartbeat**
|
||||
(thin input -> output spike) before upfront architecture.
|
||||
3. **Help at lowest level that works**, moving up only when I am stuck:
|
||||
1. A question that makes me check my own assumption.
|
||||
2. Where to look: file/line range, docs section, or inspection tool.
|
||||
2. Where to look: primary spec, RFC, source file/line range, or inspection tool (prefer
|
||||
raw specs over secondary tutorials).
|
||||
3. A short first-principles explanation of the missing concept, then hand control back.
|
||||
4. A minimal demo in an unrelated example (never in working code).
|
||||
4. **Let me attempt it**: code, prediction, explanation, diagnosis, or algorithm approach.
|
||||
Ask me to read my own result before you comment.
|
||||
4. A learner-run **30-line `scratch/` isolation lab** (or an agent demo in an unrelated
|
||||
example) when guessing or when two unknowns collide.
|
||||
4. **Predict and attempt**: before running any code, test, or lab, state a concrete prediction
|
||||
and falsifier (Predict-Before-Run). Let me attempt the code, trace, prediction, explanation,
|
||||
or diagnosis, and read my own result before you comment.
|
||||
5. **Review what I produced**: report calibration (rubric checklist + assistance level),
|
||||
label points (`correct`, `missing`, `wrong`, `unsupported`), then point at gaps.
|
||||
6. **Direct answer on request**: give without resistance, then check with one follow-up.
|
||||
|
||||
@@ -29,6 +29,7 @@ The question, bug, or mechanism I set out to understand.
|
||||
## How my mental model changed
|
||||
- Before: what I assumed.
|
||||
- After: the mechanism, invariant, or rule that clicked.
|
||||
- Reasoning trap: how my prediction or assumption got fooled (if applicable).
|
||||
|
||||
## Evidence I understood it
|
||||
Transfer challenges, predictions, or explanations I got right without direct help.
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
# Build-and-Break, Predict-Before-Run, and Code-Tracing Protocols
|
||||
|
||||
Used by `practice` when building stretch projects above your current skill level, debugging unknowns, or sharpening code-reading fluency.
|
||||
|
||||
## 1. Build-and-Break (Stretch Projects)
|
||||
|
||||
1. **Ugly Heartbeat (Vertical Flow First):**
|
||||
- Skip upfront architecture, config layers, and abstractions until data moves end-to-end.
|
||||
- Write the smallest working input -> output path (~30 ugly lines) in one sitting, touching raw primitives rather than hiding behind wrappers when learning is the goal.
|
||||
- Layer error handling, concurrency, and edge cases one at a time after the heartbeat runs.
|
||||
2. **Read the Raw Spec ("Close the Tab"):**
|
||||
- When stuck on a protocol, runtime, or library, close secondary tutorials and inspect the primary specification, RFC, or upstream source directly.
|
||||
- State the exact contract or invariant from the primary source in your own words before writing code.
|
||||
3. **Learner-Run 30-Line `scratch/` Isolation Labs:**
|
||||
- **Trigger:** Two unknowns interact, or you start guessing how a primitive behaves.
|
||||
- **Protocol:** Pause edits in the main project. Create an isolated ~30-line script in `scratch/` testing only the single unknown component.
|
||||
- **Break it on purpose:** Force boundary conditions (e.g., 1-byte buffers, empty input, timeouts, malformed payloads) until you predict every outcome accurately, then return to the main build.
|
||||
|
||||
## 2. Predict-Before-Run (Hypothesis Discipline)
|
||||
|
||||
Before running a test, command, or `scratch/` experiment, state your hypothesis explicitly:
|
||||
- **Prediction:** "I expect `X` because of mechanism `Y`."
|
||||
- **Falsifier:** "If `Z` happens instead, my assumption about `W` is wrong."
|
||||
- After running, compare actual output against the prediction before changing a single line. Change one variable at a time.
|
||||
|
||||
## 3. Code-Tracing Drills (Read Before Running)
|
||||
|
||||
1. Select 25-50 lines of real code (from an active repo or standard library).
|
||||
2. Given one normal input and one edge-case input, trace variables, branches, and return values on paper or in chat without executing the code.
|
||||
3. State where the code could fail or misbehave, then run it to verify your trace and log any mismatch as a reasoning trap.
|
||||
@@ -557,6 +557,24 @@ class TestSkillsBehavioralContracts(unittest.TestCase):
|
||||
self.assertIn("git config --bool gitea.sovereign", profile_agents)
|
||||
self.assertIn("project_number:", profile_agents)
|
||||
|
||||
def test_practice_project_labs_protocol(self):
|
||||
"""Proves practice links project-labs.md covering Ugly Heartbeat, scratch labs, Predict-Before-Run, and Code-Tracing."""
|
||||
practice_dir = REPO_ROOT / "skills" / "practice"
|
||||
practice_md = (practice_dir / "SKILL.md").read_text()
|
||||
labs_md = (practice_dir / "references" / "project-labs.md").read_text()
|
||||
record_md = (practice_dir / "references" / "practice-record.md").read_text()
|
||||
|
||||
self.assertNotIn("—", labs_md)
|
||||
self.assertNotIn("/home/", labs_md)
|
||||
self.assertIn("references/project-labs.md", practice_md)
|
||||
self.assertIn("Predict-Before-Run", practice_md)
|
||||
self.assertIn("Ugly Heartbeat", labs_md)
|
||||
self.assertIn("scratch/", labs_md)
|
||||
self.assertIn("Read the Raw Spec", labs_md)
|
||||
self.assertIn("Predict-Before-Run", labs_md)
|
||||
self.assertIn("Code-Tracing", labs_md)
|
||||
self.assertIn("Reasoning trap:", record_md)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user