Skip to content
Back to skills

Bridge Contribute

ASecurity

Contribute features or improvements from your Bridge to the open-bridge OSS upstream (or org overlay) as a fork-based PR. Scans your user branch, classifies by scope, runs the mandatory content-safety gate. Trigger: "/contribute", "contribute", "share my skill", "PR to upstream", "give back".

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 5, 2026
ai-agentspythongo

Security analysis

A100/100

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

Scanned September 26, 2026

npx -y skills add bks-lab/open-bridge --skill bridge-contribute --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bridge Contribute?

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

Security grade badge for Bridge Contribute
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bks-lab-bridge-contribute/badge)](https://www.skillsdirectory.com/skills/bks-lab-bridge-contribute)

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: bridge-contribute
description: >-
  Contribute features or improvements from your Bridge to the open-bridge OSS
  upstream (or org overlay) as a fork-based PR. Scans your user branch, classifies
  by scope, runs the mandatory content-safety gate. Trigger: "/contribute",
  "contribute", "share my skill", "PR to upstream", "give back".
metadata:
  scope: core
---

# Bridge Contribute — give improvements back upstream

This is the skill the open-bridge community uses to feed features and
improvements back: it turns work on your `user/*` branch into a clean,
reviewed pull request against `bks-lab/open-bridge` (or your org's
overlay repo) — and it **refuses to ship anything the content-safety
gate flags**. Protecting your own customer names, personal data, and
internal paths is a hard gate, not a checkbox.

Read the referenced file ONLY when triggered.

## Arguments

| Argument | Effect | Default |
|----------|--------|---------|
| `(none)` | Scan and categorize all contributable files | — |
| `{path}` | Analyze a specific file or directory | — |
| `--adapt` | Generalize org-specific content before contributing | false |
| `--repo <name>` | Only consider candidates for one destination | all |

## Decision Tree

```
User wants to...
├── Scan branch for contributions            → references/workflow.md
├── Contribute a specific file/dir           → references/workflow.md ({path})
├── Adapt/generalize content first           → references/workflow.md § Adapt mode
├── Promote whole commits by scope           → use the bridge-promote skill (/promote)
└── Questions about scope routing            → CLAUDE.md § tier model
```

## Safety (MANDATORY — the reason this skill exists)

No PR is created until the two-layer gate passes for the exact outgoing
file set:

1. `python3 scripts/no-scrub-leak.py {files}` — `scripts/no-scrub-leak.py`
   is a shared repo-root utility shipped with the Bridge repo itself, not a
   file inside this skill's own directory. It checks universal classes
   (absolute user paths, key/token shapes, merge-conflict markers) plus
   **your own roster** from `scripts/leak-patterns-internal.txt`
   (local-only, never shipped — you maintain your customer/PII regexes
   there; the shipped scanner cannot know them).
2. The per-destination blocklist scan from `rules/promote-safety.md` —
   the OSS upstream uses the strictest list.

**REFUSE path:** personal-PII or roster hits exclude the affected files
— no override flag, no "it's just an example". Remediation: `--adapt`,
re-scan, only a clean re-scan unblocks. Clean files in the same batch
still ship.

## Relationship to /promote

`/promote` (bridge-promote skill) moves **whole commits** by `scope:`
routing — the lightweight path when your branch has clean per-commit
scope discipline. `/contribute` works **file-level**, with adaptation
and always ending in a PR — the path for mixed branches and for
first-time community contributions. Full comparison table:
[`references/workflow.md`](references/workflow.md) § Relationship.

## See also

- `bridge-promote` — commit-level scope-routed promote to upstreams
- `rules/contribute-advisor.md` — proactive "this looks upstream-worthy" nudges
- `rules/promote-safety.md` — the content-scan rules this skill enforces
- `CONTRIBUTING.md` — repo-side contribution policy (DCO, licenses)

Files in this skill

  • SKILL.md3.7 KB
  • references/workflow.md14.4 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.

Comments

Loading comments…

Newsletter

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