skill-learning-loop
Skill2 starsChanged 31 days agoMITView on GitHub
Runs categorized Stars skill learning loop — drafts new Skills and proposes improvements to similar existing Skills (Captain-gated live install)
In this repository52 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/00-core-operating-model.mdcCursor rule
- .cursor/rules/01-plan-approval-gate.mdcCursor rule
- .cursor/rules/02-git-worktree-policy.mdcCursor rule
- .cursor/rules/03-validation-definition-of-done.mdcCursor rule
- .cursor/rules/04-documentation-memory.mdcCursor rule
- accessibility-reviewSkill
- agent-skills-packagingSkill
- autonomy-budgetSkill
- bounded-autonomySkill
- candidate-promotionSkill
- capability-planningSkill
- code-reviewerSkill
- code-structure-cleanupSkill
- compass-evaluatorSkill
- context-inodesSkill
- dependency-supply-chainSkill
- docker-cloudSkill
- embedding-providersSkill
- execution-telemetrySkill
- experience-routingSkill
- experience-skill-trainingSkill
- external-knowledge-ingestSkill
- github-integrationSkill
- goose-agent-orchestrationSkill
- harness-gcSkill
- hosted-vector-dbSkill
- implementation-planningSkill
- ios-engineeringSkill
- knowledge-stewardSkill
- linear-integrationSkill
- node-engineeringSkill
- northstar-connected-routineSkill
- notion-integrationSkill
- package-registry-tiSkill
- persistent-role-promotionSkill
- playwright-browser-validationSkill
- postgres-prismaSkill
- procedure-playbooksSkill
- project-overseerSkill
- pull-request-preparationSkill
- python-mlSkill
- react-engineeringSkill
- repository-discoverySkill
- review-fix-loopSkill
- security-audit-proceduresSkill
- security-reviewSkill
- skill-lifecycleSkill
- source-code-contextSkill
- technology-intelligence-liveSkill
- testing-validationSkill
- worktree-orchestrationSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Stop for Captain approval before any live .cursor/skills/ install
- Distinctive: line 24
Before any Skill draft: security-review + dependency-supply-chain evidence artifacts (fail closed if missing)
- Very specific: line 39
Prefer the topology-free launcher (maps --repo → --repo-root):
- Very specific: line 51
Never run bare ./scripts/...
- Very specific: line 119
When no existing Skill is similar enough, the loop emits SKILL.md + capability.yaml under skill-drafts/ only after scorecard evidence …
- Very specific: line 126
When Jaccard/overlap similarity between the candidate and a live Skill exceeds the threshold (default 0.28), the loop writes a …
- Very specific: line 133
Do not auto-apply proposals.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill Learning Loop
Use this Skill when
The Captain wants to learn from categorized GitHub Stars inside the disposable sandbox (or control-repo fixtures) to:
- Draft new Skills from high-signal categorized candidates
- Improve existing Compass Skills when candidate processes are similar
- Capture sandbox-test evidence through
SANDBOX_TESTED - Stop for Captain approval before any live
.cursor/skills/install
Prerequisites
- Compass ≥ 1.28.0 (M23 gates; M19/M20 loop retained); M24 launcher recommended
- Explicit CLI only — never from hooks or CI defaults
- Understanding: staging + evidence ≠ auto-install
- External repos must be starred to enter TI
- Before any Skill draft: security-review + dependency-supply-chain evidence artifacts (fail closed if missing)
Topology (required)
Learning CLIs live only in the control repository. Product / sandbox
checkouts do not contain scripts/run-skill-learning-loop.sh,
scripts/refresh-ti-cache.sh, scripts/promote-candidate.sh, or
scripts/northstar.
CONTROL=/path/to/captains-compass-cursor
SANDBOX=/path/to/captain-compass-sandboxPrefer the topology-free launcher (maps --repo → --repo-root):
"$CONTROL/scripts/northstar" skills learn --repo "$SANDBOX" ...Equivalent direct script form:
"$CONTROL/scripts/run-skill-learning-loop.sh" --repo-root "$SANDBOX" ...Never run bare ./scripts/... from inside the sandbox and expect these tools
to exist there.
Inputs
- Objective text (for ranking)
- Source:
fixtures(CI default),ti-cache, orlive(Captain-localgh) - Optional category filter (
frontend-ui,design-system,backend-library,devtool,ml-data,other) and similarity threshold
Procedure
A. Run the learning loop (staging + evidence)
CONTROL=/path/to/captains-compass-cursor
SANDBOX=/path/to/captain-compass-sandbox
"$CONTROL/scripts/northstar" skills learn \
--repo "$SANDBOX" \
--source fixtures \
--objective "accessible react forms"Equivalent:
"$CONTROL/scripts/run-skill-learning-loop.sh" \
--repo-root "$SANDBOX" \
--source fixtures \
--objective "accessible react forms"Design-system / craft tokens example (starred fixtures):
"$CONTROL/scripts/example-design-repo-scorecard.sh"
# or:
"$CONTROL/scripts/northstar" skills learn \
--repo "$SANDBOX" \
--source fixtures \
--objective "design system tokens" \
--category design-systemCaptain-local cache / live Stars:
"$CONTROL/scripts/northstar" skills refresh --repo "$SANDBOX"
"$CONTROL/scripts/northstar" skills learn \
--repo "$SANDBOX" --source ti-cache --objective "schema validation"
# or:
"$CONTROL/scripts/northstar" skills learn \
--repo "$SANDBOX" --source live --objective "schema validation"Artifacts (under --repo / sandbox or control root as configured):
- Staging candidates:
.agent/capabilities/candidates/staging/ - TI scorecards:
.agent/evidence/ti-scorecards/<id>/(security-review.md,dependency-supply-chain.md,scorecard.json) - Unified drafts:
.agent/capabilities/candidates/skill-drafts/<slug>/ - Improvement proposals (when similar):
.agent/capabilities/candidates/skill-improvement-proposals/<existing-slug>/ - Harness evidence:
.agent/evidence/candidate-sandbox-test/ - Learning-run report:
.agent/learning-runs/(includes additiveledgerblock)
B. New Skill drafts
When no existing Skill is similar enough, the loop emits SKILL.md +
capability.yaml under skill-drafts/ only after scorecard evidence exists.
Review with the Captain, then promote via Skills candidate-promotion /
skill-lifecycle with --captain-approved before copying into .cursor/skills/.
C. Improve existing Skills when processes are similar
When Jaccard/overlap similarity between the candidate and a live Skill exceeds the
threshold (default 0.28), the loop writes a skill-improvement-proposal
targeting that Skill. Proposals never mutate live SKILL.md. Meta and
safety-critical Skills are excluded from automatic targeting.
- Review the proposal JSON (suggested procedure lessons + provenance + evidence).
- Captain decides whether to fold lessons into the existing Skill via PR.
- Do not auto-apply proposals. Use Skill procedure F with
--captain-approved.
D. Captain gate for live promotion
"$CONTROL/scripts/northstar" skills promote \
--repo "$SANDBOX" \
--candidate <staging.json> \
--stage AVAILABLE_SKILL \
--evidence .agent/evidence/candidate-sandbox-test/<id>/sandbox-test.json,.agent/evidence/ti-scorecards/<id>/security-review.md,.agent/evidence/ti-scorecards/<id>/dependency-supply-chain.md \
--captain-approved \
--skill-slug <slug>Equivalent:
"$CONTROL/scripts/promote-candidate.sh" --repo-root "$SANDBOX" \
--candidate <staging.json> \
--stage AVAILABLE_SKILL \
--evidence .agent/evidence/candidate-sandbox-test/<id>/sandbox-test.json,.agent/evidence/ti-scorecards/<id>/security-review.md,.agent/evidence/ti-scorecards/<id>/dependency-supply-chain.md \
--captain-approved \
--skill-slug <slug>Then open a Captain-reviewed PR to install. Never set approved_for_execution: true.
E. Experience bridge → PROVEN (M20)
"$CONTROL/scripts/northstar" skills learn \
--repo "$SANDBOX" --source fixtures \
--objective "accessible react forms" --record-experiences
"$CONTROL/scripts/bridge-learning-experiences.sh" \
--run .agent/learning-runs/<run-id>.json
"$CONTROL/scripts/bridge-learning-experiences.sh" \
--run .agent/learning-runs/<run-id>.json \
--promote-proven \
--candidate .agent/capabilities/candidates/staging/<id>.json \
--skill-slug react-engineering \
--evidence .agent/evidence/candidate-sandbox-test/<id>/sandbox-test.json \
--captain-approvedPROVEN still needs ≥2 successful Experiences and --captain-approved.
F. Apply an improvement proposal (M20/M23)
# Draft only (default) — requires --captain-approved AND scorecard evidence_paths
"$CONTROL/scripts/apply-skill-improvement.sh" \
--proposal .agent/capabilities/candidates/skill-improvement-proposals/<slug>/from-<id>.json \
--captain-approved
# Append learned section to the live Skill (Captain only)
"$CONTROL/scripts/apply-skill-improvement.sh" \
--proposal .agent/capabilities/candidates/skill-improvement-proposals/<slug>/from-<id>.json \
--captain-approved \
--apply-liveLive apply remains --captain-approved only. Proposals must carry
security-review + dependency-supply-chain evidence paths.
G. Linear ledger sync (M24 — optional)
"$CONTROL/scripts/northstar" skills sync-ledger \
--run .agent/learning-runs/<run-id>.json \
--mode fixtures
# or link an existing Linear parent (never invents CAPTAIN_APPROVED):
"$CONTROL/scripts/northstar" skills sync-ledger \
--run .agent/learning-runs/<run-id>.json \
--mode link \
--parent-issue-id OVA-5See docs/integrations/linear-skills-learning-loop.md. Linear never originates
Captain approval.
Output
- Learning-run JSON report (with
ledgerlinkage block) - Staging candidates at
SANDBOX_TESTED - New Skill drafts and/or improvement proposals
- TI scorecard evidence suitable for draft + promotion gates
Prohibited actions
- Auto-installing into
.cursor/skills/ - Auto-applying improvement proposals to live Skills (apply requires
--captain-approved) - Drafting Skills without security-review + dependency-supply-chain evidence
- Ingesting non-starred external repos into TI
- Setting
approved_for_execution: true - Cloning or executing starred/external repositories
- Running the loop from hooks, workstream close, or CI defaults
- Advancing past
SANDBOX_TESTEDwithout--captain-approved - Assuming learning scripts exist inside product/sandbox checkouts
- Treating Linear status as Captain approval
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

