Skip to content
Back to skills

Bundling Context

ASecurity

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

  • 8 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 9, 2026
ai-agentspythonbashrefactoringgitsecuritydocumentation

Security analysis

A100/100

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

Scanned November 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Bundling Context?

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

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

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: bundling-context
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
---

# Bundling Context (`bundling-context`)

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.md2.8 KB
  • assets/resources/file-manifest-schema.json1.6 KB
  • assets/resources/file-manifest.json695 B
  • assets/templates/adversarial-security-auditor.md1.1 KB
  • assets/templates/agent-task-delegator.md817 B
  • assets/templates/compliance-standards-reviewer.md722 B
  • assets/templates/docs-synthesis-specialist.md674 B
  • assets/templates/plan-critique-reviewer.md864 B
  • assets/templates/refactoring-quality-specialist.md735 B
  • assets/templates/structural-architecture-reviewer.md747 B
  • assets/templates/tdd-contract-reviewer.md1.3 KB
  • evals/evals.json718 B
  • evals/results.tsv301 B
  • references/acceptance-criteria.md949 B
  • references/fallback-tree.md1.3 KB
  • scripts/bundle.py13.3 KB
  • scripts/bundle_zip.py12.9 KB
  • scripts/manifest_manager.py19.9 KB
  • scripts/path_resolver.py4.7 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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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