skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
nextstage-brasil/skills178 installs

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).

How do I install this agent skill?

npx skills add https://github.com/nextstage-brasil/skills --skill ns-autonomous
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill automates code implementation and repository management by creating Git worktrees and modifying source code based on external plans or issue descriptions. It requires privileged access to the local repository and processes untrusted input that could influence agent behavior.

  • Socketpass

    No alerts

  • Snykwarn

    Risk: MEDIUM · 1 issue

What does this agent skill do?

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. ns-reviewer in-session; then ns-judge in-session only if Code Review: Approved. No Task persona substitutes. Every unit (1 or ≥2) → follow ns-coder in A's session (worktree), sequentially — MUST NOT spawn coder-agent unless the user explicitly asks. 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_ROOT before 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.

  1. Origin is a GitLab issue (ISSUE_URL or issue reference) → entry priority 1 — follow ns-execution-gitlab-issue end 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.
  2. 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.

  1. Planning-depth self-decision — evaluate the issue payload and decide single work unit vs. light requirements.md + tasks/task-NNN-*.md + execution-plan.md under docs/versions/{version_san}/sdd/. See references/planning-decision.md.
  2. 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.
  3. Multi-agent dispatch — parse work units. 1 unit: follow ns-coder in this session inside WORKTREE_ROOT (defer review to caller / standalone step 5). ≥2 units: follow ns-coder in this session per unit, sequentially in DAG order (parallel workers only on explicit user request, units with no DAG edge and disjoint file scopes). No per-unit review. See references/multi-agent-dispatch.md and ../ns-harness/references/subagent-dispatch.md.
  4. Checkpoint commits — one commit per completed sequential unit or per completed parallel batch, inside the worktree; the caller squashes at delivery.
  5. 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.
  6. Return to caller: unit statuses, files changed, any open destructive doubt, and (first invocation only) a plan-based estimate_seconds hint — the caller applies set_issue_estimate only 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:

  1. Resolve the descriptor — local plan path or pasted text. No MCP calls.
  2. Infer change_kind (fix/feat), allocate {version_san}, create docs/versions/{version_san}/sdd/ when artifacts needed.
  3. Resolve its own worktree per ../ns-harness/references/worktree-setup.md Step 0: reuse pre-existing linked worktree when Step 0 allows; else create .worktrees/{version_san}/ + branch work/{version_san} from resolved base branch. Path under repo root, never under .cursor/. On failure → abort (do not fall back to the main checkout) — see references/standalone-pipeline.md.
  4. Planning-depth self-decision, doubt protocol (destructive doubt → chat-only gate, no GitLab actions available), multi-agent dispatch — identical logic to Engine mode.
  5. Internal review loop — ../ns-reviewer/references/review-gate-workflow.md (exhaustive map → one coder → delta; Approved = 10 only): ns-reviewer in-session, version-closure code mode. Do not run ns-judge until code Approved. Then in-session ../ns-judge/SKILL.md (closure). Product files changed after judge Rejected: code review again then judge again.
  6. Report per review-gate-workflow.md Final report fields plus {version_san}, worktree path, commit(s), and follow-ups. No GitLab board, no MR — unless docs/context/gitlab-sync-config.md exists 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

ConditionAction
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 codeAbort — 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 unresolvedStop — ask once
Review Blocked or 3 rounds exhaustedStop, report as blocked — do not fabricate success
Engine mode invoked with a GitLab origin but no worktree/branch givenStop — this is a caller contract violation, not a doubt

Related skills

SkillRole
ns-execution-gitlab-issueGitLab flow owner — calls this skill for Phase 2
ns-coderImplement in-session (any number of units)
ns-reviewerClosure code gate, in-session — not per unit
ns-judgeDelivery proof in-session after Code Review: Approved
ns-harnessArtifact layout, worktree mechanics, discovery

References

FileWhen
references/routing.mdIssue vs. standalone; Engine-mode I/O and anti-cycle with ns-execution-gitlab-issue
references/entry-triggers.mdPriority 3 standalone entry phrases
references/planning-decision.mdSelf-evaluation heuristic: single unit vs. requirements+tasks+plan
references/doubt-resolution.mdSelf-ask, docs-first lookup, destructive criteria, escalation shape
references/multi-agent-dispatch.mdDAG + disjoint-scope parallel rule, subagent prompt, checkpoint commits
references/standalone-pipeline.mdFull non-GitLab flow: version alloc, own worktree, review loop

Forbidden

  • Review substitutes (senior-tech-lead-reviewer, bugbot, security-review, or any non-ns-reviewer code gate) — harness reviewer-agent allowed only on explicit user request; see ../ns-reviewer/references/review-gate-workflow.md
  • ns-judge before Code Review: Approved
  • Reporting success without both Approved, or explicit blocked state
  • Skipping re-review after a Rejected fix before closure

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/nextstage-brasil/skills/ns-autonomous">View ns-autonomous on skillZs</a>