Skip to content
Agentmart
Submit a tool

branch-context-from-plan

Use when a user explicitly wants to create an implementation branch from a saved plan and attach its branch context as a named Markdown key — "from plan"…

Skill by nseng-ai

IndexedMIT★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/nseng-ai-branch-context-from-plan

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when a user explicitly wants to create an implementation branch from a saved plan and attach its branch context as a named Markdown key — "from plan", "branch this saved plan" — or to continue a Pi `/ns:branch-context:from-plan` handoff.

Use cases: documents

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/branch-context-from-plan

What's inside

Skill name
branch-context-from-plan
Description
Use when a user explicitly wants to create an implementation branch from a saved plan and attach its branch context as a named Markdown key — "from plan", "branch this saved plan" — or to continue a Pi `/ns:branch-context:from-plan` handoff.
License
MIT
Instructions
42 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • files: referenced but missing: references/lifecycle.md

Files (2)

  • SKILL.md
  • openai.yaml · agents/

SKILL.md (first lines)

# branch-context-from-plan

Resolve a saved plan, create the target branch, and attach a named Markdown plan key as branch context in Branch Memory. Part of the branch-context family — load the `branch-context` umbrella for the shared lifecycle, storage, and safety model.

## Commands

Resolve the saved plan when needed:

```bash
enriched-plan exec resolve [absolute-or-home-plan-file.md] --format json
```

Create and attach:

```bash
ns branch-context exec from-plan \
  --slug <branch-context-slug> \
  --plan-file <absolute-or-home-plan-file.md> \
  [--branch <target-branch>] \
  [--branch-creation plain-git|graphite] \
  [--summary "<one sentence>"] \
  --format json
```

## Workflow

1. Resolve the saved plan first if a path is given or none is known.

2. Derive `<branch-context-slug>` from plan content: kebab-case, 3-7 specific words, no dates/random IDs/generic-only names. This drives the default target branch and the attached-plan key `<branch-context-slug>.md`.
3. Choose the branch creation method before invoking `ns branch-context exec from-plan`. In this repo, include `--branch-creation graphite` unless the user explicitly requested plain Git. For precedence and Graphite method details, see the `branch-context` umbrella's `references/lifecycle.md` (`## Branch creation policy`).
4. Pass `--branch` only when the user requested a specific target branch.
5. Parse the standard Clinkr JSON envelope and report `data.branch`, `data.branchCreation`, `data.namespace`, `data.key`, `data.refName`, `data.commit`, `data.sourceFile`, and `data.slug`.

## Recovery

- No saved plan: run the write-plan workflow first, or provide an absolute/home-relative `.md` path.
- Slug rejected: derive a clearer 3-7 word slug and retry once before asking.
- Target branch exists: stop; ask whether to choose another `--branch` or inspect the existing branch.
- Branch Memory entry exists: do not overwrite; report namespace/key and ask.
- Graphite setup fails after branch creation: report the partial branch state; do not attach a plan manually unless the user explicitly directs recovery.

From nseng-ai/ns, MIT.

More from nseng-ai/ns

Signals

Stars
2
Forks
0
Open issues
4
Last commit (this folder)
Aug 10, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from nseng-ai

Cite this page

branch-context-from-plan skill. Agent Mart. https://agentmart.dev/skills/nseng-ai-branch-context-from-plan (last updated 2026-10-24)