Skip to content
Back to skills

Northstar

ASecurity

Deliver verified outcomes with zero silent drift. Central workflow for intent locking, multi-agent orchestration, independent QA, advisor council, stall recovery, artifact cleanup, and completion review.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added October 25, 2026
ai-agentsgorefactoringgitapisecurity

Works with

  • claude code
  • cli
  • api

Security analysis

A100/100

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

Scanned November 17, 2026

npx -y skills add stancsz/northstar --skill northstar --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Northstar?

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

Security grade badge for Northstar
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/stancsz-northstar/badge)](https://www.skillsdirectory.com/skills/stancsz-northstar)

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: northstar
description: Deliver verified outcomes with zero silent drift. Central workflow for intent locking, multi-agent orchestration, independent QA, advisor council, stall recovery, artifact cleanup, and completion review.
---

# Northstar

Deliver verified outcomes with low effort and zero silent drift. Follow the [delivery contract](#delivery-contract).

**Rule 0 — Act on the next unmet criterion.** Read the request and current state, pick the next unmet requirement, and make the smallest code change or distinguishing check that advances it. Do not build process files, expand plans, or read every linked reference before producing a real artifact or test result.

## Preserve task continuity and accumulate evidence

Fast, long-running agents lose focus when tool outputs push the original request out of view or when context compacts. Prevent drift with one explicit state anchor and hard execution brakes:

### 1. Maintain one compact state anchor
For multi-step or resumed work, keep one live block in the project's existing task/goal record (or in your working notes for a one-turn task):

```markdown
- Ask (Locked): [User's exact outcome & must-haves; never silently weaken]
- Done (Verified): [Criteria passed with command/artifact evidence]
- Remaining: [All unfinished required criteria]
- Facts vs. Unknowns: [Observed facts with source | Open unknowns/assumptions]
- Failed / Ruled Out: [Approaches tried + recovery count (0/2)]
- Next Action: [Single concrete step tied to one Remaining item]
```

- **Lock the baseline at entry.** Extract user-stated outcomes, constraints, and exclusions before dependent edits. Label agent ideas as *proposals*, never mandatory requirements. Only explicit user steering can drop or replace a requirement; if an item is blocked, keep it open in `Remaining` and report the blocker.
- **Save and read back at boundaries.** Update the anchor after a user correction, verified increment, failed attempt, or before handoff/compaction. Read back the saved file before claiming persistence.
- **Rehydrate on resume.** After compaction or session resume, read the anchor and inspect `git status` / `git diff` before making edits. Reconcile stale notes against actual files.

### 2. Hard anti-drift rules
- **Brake on tool-output hijacking.** Unrelated warnings, lint noise, or side discoveries in tool output must **never** redirect the current step. Log out-of-scope issues to `TECH_DEBT.md` (or `Remaining`) and stay on `Next Action`.
- **Protect tests and assertions.** When a check fails, fix the implementation. **Never** delete a failing test, weaken an assertion, mock out required integration, or relabel a required item as optional just to get a green run.
- **Answer side questions without losing the thread.** If the user asks a status or side question, answer it directly and immediately resume `Next Action`. If the user corrects a requirement, update `Ask`, mark superseded assumptions, and keep all unaffected requirements intact.

## Delivery contract

Shared rules across all five coordinated Northstar skills (`northstar`, `subagent-orchestration`, `independent-qa`, `advisor-council`, `task-completion-review`):

- **Focus one core commitment.** Finish and verify the highest-value existing workflow before expanding. Park optional ideas.
- **Finish before expanding.** Build the smallest complete result and run real checks. The commander accepts small, reversible, attributable work directly from test/diff evidence. Use one independent nonauthor review ([Independent QA](../independent-qa/SKILL.md)) only when required or when material user/data/security/visual risk applies.
- **Stop optional work at diminishing returns.** Continue while steps satisfy required criteria or remove material risk. Stop optional polish, research, or consultation when cost exceeds value. Never use diminishing returns to waive an unmet required criterion.
- **One approval owner.** One commander agent owns covered approvals and decisions under the user's standing grant. Workers execute in scope without asking the user or opening a second approval queue. Ask the user only for decisions explicitly reserved to them or outside the grant.
- **Subtract process.** Default to one agent. Add subagents, reviewers, or council calls only when their value clearly exceeds coordination cost.

## Deliver a usable MVP, then improve in increments

1. **Resume the actual request.** Read existing records and diffs; do not restart accepted work or create empty Northstar directories. (Use [business planning](references/business-planning.md) only when asked for market/financial/GTM strategy.)
2. **Define the finish.** State the target workflow, environment, quantitative/binary acceptance check, and scope bounds ([goal quality bar](references/goal-driven-engineering.md#define-the-goal)).
3. **Build the next complete step.** Reuse existing code and tools. Before generating disposable output, [choose its destination](references/artifact-storage.md#1-choose-a-location-before-writing); on Codex, use an active permission profile that includes the scratch root or grant a CLI worker its exact directory. Cap read-only exploration at **5 tool calls** before making a concrete edit or running a distinguishing check. When delegating to a subagent or CLI worker (Codex or Claude Code), assign one target artifact, exact writable paths, one verification check, and a firm deadline (5-minute artifact checkpoint, 10-minute handoff). Terminate the worker on `api_retry` (HTTP 429) or `unrecognized_model`. Explicit owner/project recovery rules take precedence; an observation checkpoint is not proof that a task stopped.
4. **Verify, repair, and close out.** Run the actual check once and inspect the changed behavior. Repair failures in scope. [Close out owned scratch](references/artifact-storage.md#3-close-out-owned-scratch) when the task produced it. Once the required checks and closeout are done, deliver the handoff without redundant checks. If a criterion requires missing credentials, external network/services, or out-of-scope access, **do not probe the network, credentials, or parent directories**—stop immediately and mark it `unverified`. A passing build, HTTP 200, mock, or worker summary alone is not verification.
5. **Deliver the requested outcome.** Reconcile every item in `Ask` against real evidence (`passed`, `unmet`, or `unverified`). Report material limits and stop—do not invent a new phase after completion.

## Recover from a stall

Do not loop on the same error or run unbounded diagnostics:

1. **Cap investigation at 5 calls or 10 minutes.** Name the unmet criterion and run one distinguishing check.
2. **Change method on repeated failures.** Test one causal change at a time while preserving working diffs. Unless the owner or project specifies otherwise, after **2 consecutive attempts** with the same failure or no progress, stop patching and enter **one recovery window** (counts carry across agents and context resets). An explicit autonomous-recovery policy may require continuing the goal rather than applying a fixed failure limit.
3. **Isolate or simplify.** Reproduce the minimal failure, test one simpler implementation, or consult [Advisor Council](../advisor-council/SKILL.md) for a concrete capability gap. Never retry an unchanged command or rejected approach.

### Decide after exhausted recovery
When the recovery window is spent, take the first credible action in the same turn:
- Switch to **one bounded alternative implementation** that preserves the required outcome;
- Resolve the blocking coordination/dependency; or
- Stop that route, preserve clean partial work with its exact unblock condition in the checkpoint, and advance independent authorized work. Never lower acceptance silently or end with bare options.

## Five skills, one coordinated package

Load a companion skill **only** when its trigger applies:

| Trigger | Companion to load |
| --- | --- |
| Parallel workstreams, worktree isolation, or Codex / Claude Code CLI worker dispatch | [Subagent Orchestration](../subagent-orchestration/SKILL.md) |
| Independent nonauthor QA, live runtime/browser verification, spec review, or visual inspection | [Independent QA](../independent-qa/SKILL.md) |
| Concrete blocker, capability risk, or unresolved visual/design fork | [Advisor Council](../advisor-council/SKILL.md) |
| Auditing whether substantive work may stop, wait, or continue (plus opt-in Stop hook) | [Task Completion Review](../task-completion-review/SKILL.md) |

## Use with other agents

These practices work across Codex, Claude Code, OpenCode, and other coding agents. Adapt tool calls and recovery to the host and owner's instructions while keeping intent locking, single-commander authority, and evidence verification intact. (For bilingual buyer-facing slide decks, use `bilingual-product-demo-deck` when installed and ensure slides stand alone visually.)

## Coordinate proportionately

Coordinate shared interfaces with affected owners, then let the accountable owner decide within the mandate. Reuse existing handoffs; add meetings or reports only when they change the next action.

## Run the work as an operating system

For sustained multi-team operations, ownership transfer, or unresolved disputes, load [operating practice](references/operating-system.md). For projects explicitly using GitHub Spec Kit, load the [Spec Kit bridge](references/spec-kit.md). Ignore both for ordinary tasks.

## Excellent design with minimal machinery

Build simple, modular code with minimal moving parts. Separate pure logic from I/O adapters. Reuse existing modules, delete dead code in touched scope, and separate structural refactoring from behavior changes. Log out-of-scope cleanup in `TECH_DEBT.md` rather than expanding the current task.

## Ownership: North Star → goals → tasks

Keep goal and task state in the project repository, never inside `~/.codex/skills` or `~/.claude/skills`; see [goal storage](references/goal-driven-engineering.md#define-the-goal). Orchestrators own the integrated outcome, supervisors coordinate multi-task goals, and workers own one scoped task. Combine roles when working solo, but an author cannot certify their own work as independent QA.

## Worker reports and handoffs

Return one concise handoff:
- **Artifact & paths changed** (with revision/base and candidate tree SHA when applicable)
- **Checks run & actual results** (link evidence instead of pasting long logs)
- **Remaining gaps / unknowns** (`passed`, `unmet`, `unverified`)
- **Next action**
- **Storage** (when relevant): owned paths, measured sizes, and what was removed, retained, or handed off to a named cleanup owner. [Artifact storage](references/artifact-storage.md#2-record-ownership-as-artifacts-are-created)

## Learn from every use

At meaningful checkpoints, compare expected vs. observed results. Record only lessons that change future action in the existing task record ([learning practice](references/skill-feedback.md)).

## Recommend feedback and report skill issues

At handoff, note any reusable skill lesson and optionally suggest reporting sanitized issues to [Northstar Issues](https://github.com/stancsz/northstar/issues) once; never post publicly without explicit user authority.

## Keep records and the repository small

Update records only at material decisions and handoffs, with one editor per shared file. Use a task directory under the approved [scratch root](references/artifact-storage.md), stage only intentional files, and follow [goal lifecycle](references/goal-driven-engineering.md), [goal template](templates/GOAL.md), or [examples](references/examples.md) only when needed.

Files in this skill

  • SKILL.md18.5 KB
  • agents/openai.yaml276 B
  • references/examples.md5.3 KB
  • references/goal-driven-engineering.md5.5 KB
  • references/operating-principles.md7.6 KB
  • references/operating-system.md14.4 KB
  • references/protocol.md3.1 KB
  • references/routing-rubric.md1.8 KB
  • references/skill-feedback.md8.8 KB
  • references/spec-kit.md3.7 KB
  • templates/GOAL.md2.3 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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.