From 4d0461a0d6e8ca2ad870344fd461ac2e4eaf72f3 Mon Sep 17 00:00:00 2001 From: Murat Ozcan Date: Tue, 11 Nov 2025 16:46:34 -0600 Subject: [PATCH] chore: fixed directory browsing + zip Downloads --- .github/workflows/bundle-latest.yaml | 75 ++++++++++++++++++++++++++-- docs/USING_WEB_BUNDLES.md | 16 ++++-- 2 files changed, 82 insertions(+), 9 deletions(-) diff --git a/.github/workflows/bundle-latest.yaml b/.github/workflows/bundle-latest.yaml index aaf68d3c..a963cecc 100644 --- a/.github/workflows/bundle-latest.yaml +++ b/.github/workflows/bundle-latest.yaml @@ -51,6 +51,55 @@ jobs: fi done + # Generate index.html for each agents directory (fixes directory browsing) + for module in bmm bmb cis bmgd; do + if [ -d "dist/bundles/$module/agents" ]; then + cat > "dist/bundles/$module/agents/index.html" << 'DIREOF' + + + + MODULE_NAME Agents + + + +

MODULE_NAME Agents

+ +

← Back to all modules

+ + + DIREOF + + # Replace MODULE_NAME + sed -i "s/MODULE_NAME/${module^^}/g" "dist/bundles/$module/agents/index.html" + + # Generate agent links + LINKS="" + for file in dist/bundles/$module/agents/*.xml; do + if [ -f "$file" ]; then + name=$(basename "$file" .xml) + LINKS="$LINKS
  • $name
  • \n" + fi + done + sed -i "s|AGENT_LINKS|$LINKS|" "dist/bundles/$module/agents/index.html" + fi + done + + # Create zip archives per module + mkdir -p dist/bundles/downloads + for module in bmm bmb cis bmgd; do + if [ -d "dist/bundles/$module" ]; then + (cd dist/bundles && zip -r downloads/$module-agents.zip $module/) + echo "✅ Created $module-agents.zip" + fi + done + # Create index.html for GitHub Pages cat > dist/bundles/index.html << 'EOF' @@ -93,26 +142,42 @@ jobs: Analyst | Scrum Master | UX Designer | - Tech Writer | - All BMM Agents + Tech Writer
    + 📁 Browse All | 📦 Download Zip

    BMB (BMad Builder)

    CIS (Creative Intelligence Suite)

    +
    +

    BMGD (Game Development)

    +
    + 📁 Browse Agents | 📦 Download Zip +
    +
    + +

    Bulk Downloads

    +

    Download all agents for a module as a zip archive:

    + +

    Usage

    Copy the raw XML URL and paste into your AI platform's custom instructions or project knowledge.

    Example: https://raw.githubusercontent.com/bmad-code-org/bmad-bundles/main/bmm/agents/pm.xml

    diff --git a/docs/USING_WEB_BUNDLES.md b/docs/USING_WEB_BUNDLES.md index 2fb6fc5f..19f3b5d6 100644 --- a/docs/USING_WEB_BUNDLES.md +++ b/docs/USING_WEB_BUNDLES.md @@ -27,15 +27,23 @@ https://raw.githubusercontent.com/bmad-code-org/bmad-bundles/main/bmm/agents/pm. ## Available Modules +**Bulk Downloads:** + +- [📦 BMM Agents (8)](https://bmad-code-org.github.io/bmad-bundles/downloads/bmm-agents.zip) +- [📦 BMB Agents (1)](https://bmad-code-org.github.io/bmad-bundles/downloads/bmb-agents.zip) +- [📦 CIS Agents (5)](https://bmad-code-org.github.io/bmad-bundles/downloads/cis-agents.zip) +- [📦 BMGD Agents (4)](https://bmad-code-org.github.io/bmad-bundles/downloads/bmgd-agents.zip) + +**Individual Agents:** + ### BMM (BMad Method) - [PM](https://raw.githubusercontent.com/bmad-code-org/bmad-bundles/main/bmm/agents/pm.xml) | [Architect](https://raw.githubusercontent.com/bmad-code-org/bmad-bundles/main/bmm/agents/architect.xml) | [TEA](https://raw.githubusercontent.com/bmad-code-org/bmad-bundles/main/bmm/agents/tea.xml) | [Developer](https://raw.githubusercontent.com/bmad-code-org/bmad-bundles/main/bmm/agents/dev.xml) -- [All BMM Agents](https://github.com/bmad-code-org/bmad-bundles/tree/main/bmm/agents) +- [Browse All](https://bmad-code-org.github.io/bmad-bundles/bmm/agents/) -### BMB / CIS +### BMB / CIS / BMGD -- [BMB Builder](https://raw.githubusercontent.com/bmad-code-org/bmad-bundles/main/bmb/agents/bmad-builder.xml) -- [Browse CIS Agents](https://github.com/bmad-code-org/bmad-bundles/tree/main/cis/agents) +- [Browse BMB](https://bmad-code-org.github.io/bmad-bundles/bmb/agents/) | [Browse CIS](https://bmad-code-org.github.io/bmad-bundles/cis/agents/) | [Browse BMGD](https://bmad-code-org.github.io/bmad-bundles/bmgd/agents/) ---