
ns-autonomous
(NS) Autonomous execution engine — plans depth, resolves doubts from docs/specs, multi-agent work in an isolated worktree. Use for a local/pasted plan or "run this autonomously" without GitLab. Also Phase 2 under ns-execution-gitlab-issue (do not run standalone then). Not for single-step edits (ns-coder) or GitLab issues directly (ns-execution-gitlab-issue).
- Installs
- 126
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/nextstage-brasil/skills --skill ns-autonomous- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads ns-autonomous automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Code Autonomous
Harness-aware execution engine: planning depth, doubt resolution, multi-agent dispatch, review gate — standalone pipeline or caller's Phase 2 engine.
Workflow mode (mandatory)
Fixed workflow — named skill handoffs or harness bridges (../../ns-harness/references/subagent-dispatch.md spawn gate). Review gate: ../ns-reviewer/references/review-gate-workflow.md. MUST reviewer-agent when available (else ns-reviewer); then ns-judge in-session only if Code Review: Approved. No Task persona substitutes. ≥2 units → MUST coder-agent per unit (ns-coder); 1 unit → follow ns-coder in A (worktree) — MUST NOT extra spawn. C2 / single-unit workers = implement only; no per-unit review — parent owns REV at closure.
Isolation invariant (non-negotiable)
Skill never writes application code on main product checkout; never commits main/master/base/SOURCE_BRANCH unless human explicitly said work in place this run.
- Standalone + Engine: isolated
WORK_BRANCH+WORKTREE_ROOTbefore any implementation edit. - Worktree creation fails, or CWD/branch still main checkout / base → stop. No "continue on main to unlock plan".
- Sandbox restrictions (
Operation not permitted,.cursor/paths) not permission to violate invariant.
Session boot
See ../../ns-harness/references/session-boot.md. Complete Session boot (blocking) there before any other step in this skill.
After session boot — Engine and Standalone
Engine mode: caller may have already completed Session boot in Phase 0 — re-read session-boot.md only if context is missing.
Standalone: you own Session boot before step 1 of the standalone pipeline.
Routing (read first)
Entry priority table: ../../ns-harness/references/code-skill-routing.md. Standalone triggers: references/entry-triggers.md.
- Origin is a GitLab issue (
ISSUE_URLor issue reference) → entry priority 1 — followns-execution-gitlab-issueend to end; this skill only runs as its Phase 2 engine (Engine mode below). Do not run the standalone pipeline, do not touch GitLab state, do not create a worktree. - Standalone autonomous (local plan file, pasted text/plan, ad-hoc "implement this autonomously" without an issue) → entry priority 3 — run the standalone pipeline: own worktree, own state, own review loop.
See references/routing.md for Engine-mode I/O and anti-cycle rules with ns-execution-gitlab-issue.
Engine mode (invoked by ns-execution-gitlab-issue)
Inputs (already resolved by the caller — this skill never creates them): issue payload, WORKTREE_ROOT, WORK_BRANCH, SOURCE_BRANCH.
- Planning-depth self-decision — evaluate the issue payload and decide single work unit vs. light
requirements.md+tasks/task-NNN-*.md+execution-plan.mdunderdocs/versions/{version_san}/sdd/. Seereferences/planning-decision.md. - Doubt protocol — self-ask, docs-first lookup, self-answer non-destructive doubts, escalate destructive ones as a structured event to the caller instead of mutating GitLab state; pause dependent units until resumed. See
references/doubt-resolution.md. - Multi-agent dispatch — parse work units. 1 unit: follow
ns-coderin this session insideWORKTREE_ROOT(defer review to caller / standalone step 5). ≥2 units: MUST dispatchcoder-agentwhen available (elsens-coder) per unit; parallel only across units with no DAG edge and disjoint file scopes; sequential otherwise. Workers implement only — no per-unitreviewer-agent. Seereferences/multi-agent-dispatch.mdand../../ns-harness/references/subagent-dispatch.md. - Checkpoint commits — one commit per completed sequential unit or per completed parallel batch, inside the worktree; the caller squashes at delivery.
- Fix-loop entry point — when re-invoked after
Rejected, run one coder call on the whole map verbatim (no unit-count split, no “or units”). Skip units already done. - Return to caller: unit statuses, files changed, any open destructive doubt, and (first invocation only) a plan-based
estimate_secondshint — the caller appliesset_issue_estimateonly when the issue estimate is empty and the value is ≥ 60 (see../ns-execution-gitlab-issue/references/time-tracking.md).
Standalone pipeline (non-GitLab origin)
Same internals as Engine mode, but this skill owns the whole run:
- Resolve the descriptor — local plan path or pasted text. No MCP calls.
- Infer
change_kind(fix/feat), allocate{version_san}, createdocs/versions/{version_san}/sdd/when artifacts needed. - Create its own worktree:
.worktrees/{version_san}/+ branchwork/{version_san}from the resolved base branch, following../../ns-harness/references/worktree-setup.md. Path is under the repo root, never under.cursor/. On failure → abort (do not fall back to the main checkout) — seereferences/standalone-pipeline.md. - Planning-depth self-decision, doubt protocol (destructive doubt → chat-only gate, no GitLab actions available), multi-agent dispatch — identical logic to Engine mode.
- Internal review loop —
../ns-reviewer/references/review-gate-workflow.md(exhaustive map → one coder →delta;Approved= 10 only): MUSTreviewer-agentwhen available (elsens-reviewer) version-closure code mode. Do not runns-judgeuntil codeApproved. Then in-session../ns-judge/SKILL.md(closure). Product files changed after judge Rejected: code review again then judge again. - Report per
review-gate-workflow.mdFinal report fields plus{version_san}, worktree path, commit(s), and follow-ups. No GitLab board, no MR — unlessdocs/context/gitlab-sync-config.mdexists and the human explicitly asked for one (out of scope for v1; standalone stays local-only otherwise).
See references/standalone-pipeline.md for the full flow.
Stop and ask the human
| Condition | Action |
|---|---|
| Destructive doubt (Engine mode) | Return escalation event to caller — no chat pause here |
| Destructive doubt (standalone) | Stop in chat, ask, resume with the answer as context |
Worktree conflict for the same {run_id} (standalone) | Stop unless explicit resume |
git worktree add failed (permissions/sandbox/path) | Abort — report path attempted; never fall back to main checkout or .cursor/ |
Still on main/master/base branch when about to edit code | Abort — isolation missing; do not implement |
| Human explicitly said "do not create a new branch / work in place" | Only then may edit the current branch; still never invent a .cursor/ path |
| Base branch for standalone worktree unresolved | Stop — ask once |
Review Blocked or 3 rounds exhausted | Stop, report as blocked — do not fabricate success |
| Engine mode invoked with a GitLab origin but no worktree/branch given | Stop — this is a caller contract violation, not a doubt |
Related skills
| Skill | Role |
|---|---|
ns-execution-gitlab-issue | GitLab flow owner — calls this skill for Phase 2 |
ns-coder | Implement via in-session (1 unit) or coder-agent (≥2 — MUST when available) |
ns-reviewer | Closure code gate via reviewer-agent (MUST when available) — not per unit |
ns-judge | Delivery proof in-session after Code Review: Approved |
ns-harness | Artifact layout, worktree mechanics, discovery |
References
| File | When |
|---|---|
references/routing.md | Issue vs. standalone; Engine-mode I/O and anti-cycle with ns-execution-gitlab-issue |
references/entry-triggers.md | Priority 3 standalone entry phrases |
references/planning-decision.md | Self-evaluation heuristic: single unit vs. requirements+tasks+plan |
references/doubt-resolution.md | Self-ask, docs-first lookup, destructive criteria, escalation shape |
references/multi-agent-dispatch.md | DAG + disjoint-scope parallel rule, subagent prompt, checkpoint commits |
references/standalone-pipeline.md | Full non-GitLab flow: version alloc, own worktree, review loop |
Forbidden
- Review substitutes (
senior-tech-lead-reviewer,bugbot,security-review, or any non-ns-reviewercode gate) — harnessreviewer-agentis allowed; see../ns-reviewer/references/review-gate-workflow.md ns-judgebeforeCode Review: Approved- Reporting success without both
Approved, or explicit blocked state - Skipping re-review after a
Rejectedfix before closure
FAQ
What does the ns-autonomous skill do?
(NS) Autonomous execution engine — plans depth, resolves doubts from docs/specs, multi-agent work in an isolated worktree. Use for a local/pasted plan or "run this autonomously" without GitLab. Also Phase 2 under ns-execution-gitlab-issue (do not run standalone then). Not for single-step edits (ns-coder) or GitLab issues directly (ns-execution-gitlab-issue).
How do I install ns-autonomous?
Run npx skills add https://github.com/nextstage-brasil/skills --skill ns-autonomous in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/ns-autonomous/ (personal) or .claude/skills/ns-autonomous/ (project).
Which AI agents can use ns-autonomous?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is ns-autonomous safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains ns-autonomous?
It is published by nextstage-brasil in nextstage-brasil/skills. It has 126 recorded installs.
More from nextstage-brasil/skills
ns-gitlab-board-sync
nextstage-brasil/skills
(NS) Sync existing GitLab issues with local planning/execution — milestone, RF labels, status, assignee, estimates, spent time. Use during implementation when tasks link to GitLab issues or after plan-version-from-gitlab sync — not for creating new issues (use mcp-gitlab-usage). Always atomic setissuelabels and three-step status cycle.
ns-spec-driven
nextstage-brasil/skills
Open the skill to read its SKILL.md instructions.
ns-gitlab-ci-generator
nextstage-brasil/skills
Open the skill to read its SKILL.md instructions.
ns-project-manager
nextstage-brasil/skills
Open the skill to read its SKILL.md instructions.
mcp-gitlab-usage
nextstage-brasil/skills
Open the skill to read its SKILL.md instructions.
Popular ai & agents skills
google-agents-cli-publish
google/agents-cli
This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).
google-agents-cli-eval
google/agents-cli
This skill should be used when the user wants to "run an evaluation", "evaluate my agent", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).
skill-creator
anthropics/skills
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
codex-pet
prime-skills/runcomfy-agent-skills
Codex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json from a single reference image, drop it into ${CODEXHOME:-$HOME/.codex}/pets/ / and Codex picks it up as a custom Codex Pet next to the 8 built-ins. This skill produces the exact Codex Pet atlas Codex expects (1536x1872 PNG/WebP, 8 cols x 9 rows, 192x208 cells, 9 animation states — idle, running-right, running-left, waving, jumping, failed, waiting, running, review). Calls OpenAI GPT Image 2 edit ONCE via the local RunComfy CLI as runcomfy run openai/gpt-image-2/edit to produce a canonical Codex Pet pose, then assembles all 9 animation rows programmatically with ImageMagick micro-transforms — no Codex Pro, no $imagegen, no OPENAIAPIKEY required, only RUNCOMFYTOKEN. Triggers on "codex pet", "create codex pet", "make codex pet", "hatch codex pet", "/hatch image", "desktop pet codex", "codex pets", "spritesheet.webp", or any explicit ask to build a custom pet for OpenAI Codex.
full-output-enforcement
leonxlnx/taste-skill
Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.
executing-plans
obra/superpowers
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available