Back to skills
SKILL.md
Collection
ASecurityEarn trust through verification. Invoke at session start to establish verifiable checkpoints (environment, baseline, completion). Trust comes from gates, not claims.
- 24 stars
- 0 votes
- 0 copies
- 2 views
- Added September 8, 2026
Security analysis
100/100Pro scans all 21 files and shows the line behind each finding
npx -y skills add mattnigh/skills_collection --skill collection --agent claude-codeAre you the author of Collection?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mattnigh-collection-1efd0e53)---
name: task-coding-loop
description: Earn trust through verification. Invoke at session start to establish verifiable checkpoints (environment, baseline, completion). Trust comes from gates, not claims.
---
# Coding Loop
Trust is earned, not assumed.
## Context: Where Coding-Loop Fits
This skill operates within the **Execute** stage of RSID:
```
USER-DRIVEN: Listen → Execute ← YOU ARE HERE → Reflect
AUTONOMOUS: Ideate → Execute ← YOU ARE HERE → Reflect
```
After completing Execute (PR merged), invoke **rsid** skill to Reflect and record learnings.
## The Principle
You have autonomy to change code. That autonomy requires accountability:
| Claim | Gate |
|-------|------|
| "Environment is safe" | devcontainer OR explicit host acknowledgment |
| "Starting state is clean" | `./verify.sh --agent` passes |
| "Changes are correct" | `./verify.sh --agent` passes |
| "Work is complete" | PR merged + main verified |
**No gate, no trust.**
## Session Gates
1. **Start**: Verify baseline green before writing code
2. **Design**: Invoke **coding-patterns** before creating new packages (see Pre-Design Gate below)
3. **Implement**: Verify after significant changes
4. **Pre-PR**: Pass hard gates (see below) before creating PR
5. **Review**: Spawn **tsc-reviewer** subagent (MANDATORY - do NOT self-review)
6. **Complete**: PR merged (not just created) + main verified post-merge
7. **Reflect**: Invoke **rsid** to record learnings in memory.yaml
8. **Stuck**: After 3 failed attempts → escalate, don't loop
## Hard Gates (Blocking)
These gates MUST be satisfied before PR creation:
### 0. Pre-Design Gate (for new packages)
Before designing new contract/port packages, invoke **coding-patterns** skill and answer:
- [ ] Is this a **capability** (interface with methods) or **data structure** (pure types)?
- [ ] If data structure: are operations in port as pure functions (not methods on contract)?
- [ ] Does this follow existing package patterns in the monorepo?
**If creating packages without this gate**: Design will likely conflate data and operations. Stop, invoke skill, redesign.
### 1. Commit Atomicity Gate
```bash
# Check commit count and size
git log --oneline main..HEAD
git diff --stat main..HEAD
```
| Commits | Lines Changed | Action Required |
|---------|---------------|-----------------|
| 1 | > 200 | SPLIT: Use `git rebase -i main` per **effective-git** |
| Any | > 500 total | SPLIT: Break into logical units |
**If gate fails**: Invoke **effective-git** skill and restructure before PR.
### 2. Subagent Review Gate
Before merge, the **tsc-reviewer** subagent MUST approve:
```
Spawn: "Use the tsc-reviewer agent to review this PR"
Loop until:
- Verdict = APPROVED
- Blockers = 0
Only then: gh pr merge
```
**If subagent not spawned**: Review is incomplete. Do not merge.
**If blockers remain**: Address findings, re-spawn subagent, repeat.
### 3. Size-Based Skill Invocation
| Change Size | Required Skills |
|-------------|-----------------|
| < 50 lines | coding-loop (this) |
| 50-200 lines | + **tsc-reviewer** (agent for review) |
| > 200 lines | + **effective-git** (restructure first) |
| > 10 files | Consider human review escalation |
## Commands
```bash
./verify.sh --agent # Minimal output: VERIFY:PASS or structured failure
git status -sb # Know your state
gh pr diff <n> # Review before merge (mandatory)
```
## Slash Commands
Use these for accelerated workflows:
| Command | Purpose |
|---------|---------|
| `/verify` | Run full pipeline or specific stage |
| `/verify-lint [package]` | Quick lint check with optional scope |
| `/lint-and-learn` | Auto-fix lint + extract lessons + create PR |
| `/tsc-review <pr>` | Spawn TSC reviewer with auto-merge on APPROVED |
## Deeper Guidance
- **rsid** → outer context, post-merge reflection
- **plan-writing** → rigorous plans for distinguished engineers
- **coding-patterns** → architecture patterns
- **tsc-reviewer** (agent) → mandatory PR review before merge (contains all review criteria)
- **effective-git** → commit discipline
- **verification-pipeline** → debugging failures
- **devcontainer-sandboxing** → environment safety
- **pull-request** → PR authoring and review workflow
Files in this skill
- 0Chan-smc__claude-code-workflow-lab__claude__skills__frontend-dev-guidelines__SKILL.md
- 17hz__nextjs-template__claude__skills__example-skill__SKILL.md
- 1ambda__dataops-platform__claude__skills__context-synthesis__SKILL.md
- 1natsu172__dotfiles__claude__skills__git-analysis__SKILL.md
- 1natsu172__dotfiles__claude__skills__github-pr-best-practices__SKILL.md
- 23Maestro__prospect-pipeline__claude__skills__npid-fastapi-skill.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-code-javascript__SKILL.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-code-python__SKILL.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-expression-syntax__SKILL.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-mcp-tools-expert__SKILL.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-node-configuration__SKILL.md
- 360AYA25__ClaudeN8N__claude__skills__n8n-workflow-patterns__SKILL.md
- 3x-Projetos__claude-memory-framework__claude__skills__scientist__SKILL.md
- 5MinFutures__futures-arena__claude__skills__migration-tracker__SKILL.md
- 5MinFutures__futures-arena__claude__skills__planning-guidelines__SKILL.md
- 92Bilal26__TaskPilotAI__claude__skills__assessment-builder__SKILL.md
- 92Bilal26__TaskPilotAI__claude__skills__book-scaffolding__SKILL.md
- 92Bilal26__TaskPilotAI__claude__skills__code-validation-sandbox__SKILL.md
- 92Bilal26__TaskPilotAI__claude__skills__exercise-designer__SKILL.md
- 92Bilal26__TaskPilotAI__claude__skills__learning-objectives__SKILL.md
Attribution
Comments
Loading comments…