Skip to content
Back to skills

Collection

ASecurity

Earn 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
code-qualityrustgobashdebugginggit

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add mattnigh/skills_collection --skill collection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Collection?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Collection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mattnigh-collection-1efd0e53/badge)](https://www.skillsdirectory.com/skills/mattnigh-collection-1efd0e53)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.md15.1 KB
  • 17hz__nextjs-template__claude__skills__example-skill__SKILL.md316 B
  • 1ambda__dataops-platform__claude__skills__context-synthesis__SKILL.md3.5 KB
  • 1natsu172__dotfiles__claude__skills__git-analysis__SKILL.md5.4 KB
  • 1natsu172__dotfiles__claude__skills__github-pr-best-practices__SKILL.md7.7 KB
  • 23Maestro__prospect-pipeline__claude__skills__npid-fastapi-skill.md26.1 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-code-javascript__SKILL.md15.7 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-code-python__SKILL.md17.5 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-expression-syntax__SKILL.md9.4 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-mcp-tools-expert__SKILL.md12.5 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-node-configuration__SKILL.md16.6 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-workflow-patterns__SKILL.md11.2 KB
  • 3x-Projetos__claude-memory-framework__claude__skills__scientist__SKILL.md14.8 KB
  • 5MinFutures__futures-arena__claude__skills__migration-tracker__SKILL.md16.2 KB
  • 5MinFutures__futures-arena__claude__skills__planning-guidelines__SKILL.md11.8 KB
  • 92Bilal26__TaskPilotAI__claude__skills__assessment-builder__SKILL.md17.5 KB
  • 92Bilal26__TaskPilotAI__claude__skills__book-scaffolding__SKILL.md19.1 KB
  • 92Bilal26__TaskPilotAI__claude__skills__code-validation-sandbox__SKILL.md6.2 KB
  • 92Bilal26__TaskPilotAI__claude__skills__exercise-designer__SKILL.md18.1 KB
  • 92Bilal26__TaskPilotAI__claude__skills__learning-objectives__SKILL.md24.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…