Skip to content
Back to skills

Context Bundler

ASecurity

Interactively creates targeted code and documentation bundles (Markdown or ZIP) for review and sub-agent task delegation.

  • 7 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 2, 2026
ai-agentspythonbashrefactoringgitsecuritydocumentation

Security analysis

A100/100

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

Scanned October 3, 2026

npx -y skills add richfrem/agent-plugins-skills --skill context-bundler --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Context Bundler?

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

Security grade badge for Context Bundler
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/richfrem-context-bundler/badge)](https://www.skillsdirectory.com/skills/richfrem-context-bundler)

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: context-bundler
plugin: dev-utils
description: Interactively creates targeted code and documentation bundles (Markdown or ZIP) for review and sub-agent task delegation.
allowed-tools: Bash, Read, Write, Glob, Grep
---

# Context Bundler (`context-bundler`)

Compiles codebase files, documentation, and persona prompts into portable payloads for AI chat interfaces, sub-agents, or external review.

## Contents

- [Critical Constraints](#critical-constraints)
- [Quick start](#quick-start)
- [Execution Modes](#execution-modes)
- [Workflow](#workflow)
- [Persona Template Library](#persona-template-library)
- [Verification](#verification)
- [References](#references)

## Critical Constraints

1. **Gitignored Storage**: All manifests and bundles MUST be generated inside a gitignored `temp/` subfolder (e.g. `temp/bundles/`). Never write payloads to repo root.
2. **First File Entry**: For persona-driven reviews, `prompt.md` must be listed as the first file entry in the manifest.

## Quick start

Generate a Markdown bundle from a file manifest:

```bash
python3 scripts/bundle.py --manifest temp/bundles/file-manifest.json --bundle temp/bundles/payload.md
```

## Execution Modes

1. **Standard Bundle**: Custom file/folder selection for general context sharing.
2. **Persona Review**: Injects review persona prompts (`prompt.md`) ahead of codebase files.
3. **Monorepo Segmented**: Domain-partitioned packaging (`/skills`, `/agents`, `/scripts`, `/docs`).
4. **Multi-Persona Fan-Out**: Parallel packaging for the Graph Planning Fan-Out Trio (Architecture, Security, TDD).

## Workflow

1. **Discovery**: Select mode (Standard, Persona, Fan-Out), format (`.md` or `.zip`), and targets.
2. **Manifest Generation**: Write `file-manifest.json` in `temp/context-bundle-[name]/`.
3. **Execute Compiler**: Run `scripts/bundle.py` or `scripts/bundle_zip.py` to compile the payload.
4. **Handoff**: Present generated payload path to user or dispatch to sub-agents.

## Persona Template Library

Templates in `assets/templates/`:
- `structural-architecture-reviewer.md` — C4 model, SOLID, interface abstraction.
- `adversarial-security-auditor.md` — OWASP, injection vectors, exploit scenarios.
- `tdd-contract-reviewer.md` — Test fixtures, assertion contracts, testability.
- `agent-task-delegator.md` — Turnkey sub-agent handoffs with tool gates.
- `refactoring-quality-specialist.md` — Complexity reduction and clean diffs.

## Verification

Confirm generated bundle exists and contains valid aggregated content:

```bash
test -f temp/bundles/payload.md && wc -l temp/bundles/payload.md
```

## References

- [acceptance-criteria.md](references/acceptance-criteria.md) — Acceptance criteria for context bundling and schema validation.
- [fallback-tree.md](references/fallback-tree.md) — Fallback protocol when files or bundle paths are missing.

Files in this skill

  • SKILL.md7 KB
  • acceptance-criteria.md949 B
  • assets/resources/file-manifest-schema.json54 B
  • assets/resources/file-manifest.json47 B
  • assets/templates/adversarial-security-auditor.md60 B
  • assets/templates/agent-task-delegator.md52 B
  • assets/templates/compliance-standards-reviewer.md61 B
  • assets/templates/docs-synthesis-specialist.md57 B
  • assets/templates/plan-critique-reviewer.md54 B
  • assets/templates/refactoring-quality-specialist.md62 B
  • assets/templates/structural-architecture-reviewer.md64 B
  • assets/templates/tdd-contract-reviewer.md53 B
  • evals/evals.json718 B
  • evals/results.tsv301 B
  • fallback-tree.md1.3 KB
  • requirements.in21 B
  • requirements.txt22 B
  • scripts/bundle.py26 B
  • scripts/bundle_zip.py30 B
  • scripts/manifest_manager.py36 B

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…