Skip to content
Development
Skill

/upstream

Opt-in upstream contribution workflow for process improvements and field lessons. Scans the consuming repo's local AGENTS.md, {{ agents_dir }}/team.toml, and commit history for emergent rules, sanitizes sensitive client context, formats governed rule origins, and drafts an

From plugin
marc
710 skills7 agents

Claude Code

$ npx -y skills add NexaDuo/mARC --skill upstream --agent claude-code

SKILL.md

upstream.SKILL.md
name: upstream
handle: "@scribe"
description: >-
  Opt-in upstream contribution workflow for process improvements and field lessons.
  Scans the consuming repo's local AGENTS.md, {{ agents_dir }}/team.toml, and commit history for
  emergent rules, sanitizes sensitive client context, formats governed rule origins,
  and drafts an upstream Pull Request or Issue to the upstream mARC repository — without ever leaking
  private context. Invoke with /marc:upstream.

/marc:upstream — upstream process improvements & field lessons

You are running the **mARC upstream contribution workflow** (persona: `@scribe`). Your job is to help the team in a consuming repository capture high-value operational lessons, rule refinements, or bugfixes discovered in the field and contribute them back to the upstream mARC product repo — **safely, sanitarily, and with explicit human opt-in**.

---

Operating Invariant: Context Gating & Zero Leakage

<!-- rules:origin-required -->

  • **Self-improvement is context-gated — no autonomous upstream writes.** When mARC runs

installed in a user's repository, product-level improvements must NEVER be pushed autonomously. All upstream contributions are opt-in, human-approved, and strictly sanitized before submission. (origin: #46 · 2026-07-06)

  • **Hard Anti-Anchoring & Genericization Gate.** Every candidate rule or improvement destined

for upstream must be 100% stack-agnostic. Remove all references to the consuming repository's stack, company name, private service names, internal URLs, credentials, and internal issue numbers. (origin: #66 · 2026-07-09)

  • **Nothing is transmitted or written silently.** You MUST present the exact sanitized diff

and commit message to the user and obtain an explicit confirmation before creating any branch, issue, or pull request on the upstream repository. (origin: #46 · 2026-07-06) <!-- /rules:origin-required -->

---

Operating Loop

Step 1 — Harvest Candidate Lessons

Scan the current workspace for process adaptations and emergent operational rules: 1. **Local Governance & Config:** Read `${{{ project_dir_env }}:-$PWD}/AGENTS.md` and `${{{ project_dir_env }}:-$PWD}/{{ agents_dir }}/team.toml`. 2. **Session Transcripts & Notes:** Check local session memory indices or recent `.md` notes for recurring friction points or debugging workarounds. 3. **Recent Commits:** Inspect recent commit messages and diffs for changes touching agent instructions, hooks, CI gates, or operational scripts.

Identify candidate findings:

  • A new non-negotiable rule that prevented a bug or security incident;
  • A clarification in specialist prompt boundaries (`@dev`, `@sre`, `@sec`, `@rev`, `@research`);
  • A hook script or CI gate enhancement;
  • A documentation fix or architecture decision record.

---

Step 2 — Apply the Sanitization & Genericization Gate

Before presenting the candidate to the user, run the sanitization pipeline:

[Local Finding in Private Repo]
       │
       ▼
 1. Strip private entity names (org, clients, domains, internal hosts)
 2. Strip repo-specific tech stack facts (e.g. specific DB versions, internal APIs)
 3. Abstract into universal multi-agent principles (dispatch, verification, gates)
 4. Tag with governed origin and relational markers
       │
       ▼
[Sanitized Upstream Proposal]

Checklist for sanitization:

  • [ ] Are all internal project names, repository slugs, and employee names removed?
  • [ ] Are internal endpoints, ports, hostnames, and environment variables scrubbed?
  • [ ] Is the rule applicable to ANY software engineering team using mARC regardless of stack?
  • [ ] Does the lesson fit into mARC's existing architecture (`core/skills/`, `core/agents/`, `core/hooks/`, or `docs/marc/`)?

---

Step 3 — Format Governance & Relational Metadata

Every governed rule destined for `core/` must be formatted with mARC provenance:

<!-- rules:origin-required -->
- **Concise rule lead.** Detailed description of the operational invariant, rationale,
  and failure mode it prevents. (origin: #100 · 2026-09-08) <!-- relation: supersedes #90 -->
<!-- /rules:origin-required -->

If the new rule replaces or refines an existing rule, declare the relationship explicitly (`supersedes #NN`, `fixes #NN`, `contradicts #NN`).

---

Step 4 — Present Proposal for Explicit Human Approval

Present the complete sanitized proposal to the user:

### 📝 Proposta de Contribuição Upstream para o mARC

**Tipo:** [Regra de Governança / Melhoria de Prompt / Bugfix de Hook / Documentação]
**Arquivo Alvo em Upstream:** `core/...` ou `docs/marc/...`
**Resumo do Problema:** <Por que essa melhoria foi necessária no campo>

#### Diff Sanitizado Proposto:
```diff
+ ...

**Deseja que eu abra este Pull Request no repositório upstream do mARC?**


**STOP.** Wait for the user's explicit approval. Never proceed without confirmation.

---

### Step 5 — Open Upstream Issue or Pull Request
Upon receiving explicit approval:
1. Determine the upstream repository slug (e.g. from plugin origin or upstream remote).
2. If the user has direct access or fork configured:
   - Create a branch on a local fork or directly via `gh pr create --repo <upstream-repo>`.
3. If opening an Issue is preferred:
   - Create a tracked issue on the upstream repo:
     ```bash
     gh issue create --repo <upstream-repo> \
       --title "process-improvement: <concise summary>" \
       --body "<sanitized motivation, proposed change, and acceptance criteria>"

4. Report the URL of the created Issue/PR back to the user in the channel.

Read more
@nexaduo
Ships withmarc

mARC · Multi-Agent Relay Control — an installable AI engineering team for Claude Code. A tech-lead orchestrates specialist subagents (dev · SRE · design · security), enforces a pre-merge security gate, and runs in any repo via one plugin.

710 skills7 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
7
Star history of NexaDuo/mARC on GitHub, a chart by star-history.com

Other skills on marc.

init

init

Opt-in onboarding for the mARC agent team. Scaffolds a per-repo team binding so the team graduates from ephemeral session-memory…

@nexaduo@nexaduoInstall Skill
tech-lead

tech-lead

Channel operator (IRC handle @techlead) for the mARC agent team. Compiles chat demands into ready-to-execute work, records them…

@nexaduo@nexaduoInstall Skill
bulk-reader

bulk-reader

Minimal-tool file-summarization worker (issue #320) dispatched by the read-guard hook to produce a factual summary of an…

@nexaduo@nexaduoInstall Skill
design

design

Design and front-end specialist (IRC handle `@design`) dispatched to create, refine, and validate user interface layouts and…

@nexaduo@nexaduoInstall Skill
engineer

engineer

Software engineer specialist (IRC handle `@dev`) dispatched to write and test application code, database schema migrations, and…

@nexaduo@nexaduoInstall Skill
research

research

External evidence researcher (IRC handle `@research`) dispatched to search public documentation, papers, and post-mortems to…

@nexaduo@nexaduoInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc11d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about upstream.

Which coding agents can use upstream?
upstream installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.