beads-guard

Prevent JSONL conflicts and master commits in Beads workflows.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/stars-end/agent-skills --skill beads-guard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: beads-guard
Source: https://github.com/stars-end/agent-skills/tree/main/beads-guard
Command: npx skills add https://github.com/stars-end/agent-skills --skill beads-guard

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Beads Guard provides warning-only guidance to avoid recurring .beads/issues.jsonl conflicts and accidental master commits. It helps ensure you are on a feature branch, up to date with origin/master, and that Beads files are staged with proper Feature-Key commits.

Core Features & Use Cases

  • Warning-only checks before bd sync/close/create to prevent conflicts
  • Guides on branch alignment, up-to-date status, and proper staging
  • One-click manual workflow steps for the safest Beads operations

Quick Start

On a Beads-enabled repo, run the guard steps to preflight your Beads work, then proceed with your normal Beads workflow:

  1. Ensure you are on a feature branch: git status -sb
  2. Rebase to the latest master: git fetch origin master && git rebase origin/master
  3. Pull latest Beads DB: bd pull
  4. Stage Beads files before commit: git add .beads/issues.jsonl

Frequently Asked Questions about beads-guard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent .beads/issues.jsonl conflicts in my git workflow?

Beads Guard provides warning-only checks before bd sync, close, or create operations to prevent .beads/issues.jsonl conflicts. It guides you to ensure you're on a feature branch, rebased to origin/master, and have staged Beads files with proper commits, reducing merge conflicts on master.

What steps should I follow before running bd pull or bd sync on a feature branch?

Before bd pull or bd sync, verify you're on a feature branch, fetch and rebase to origin/master, pull the latest Beads database with bd pull, and stage .beads/issues.jsonl. Beads Guard walks through these preflight steps to ensure clean, conflict-free operations.

How do I ensure proper Feature-Key commits in my Beads workflow?

Beads Guard checks that commits include Feature-Key trailers with agent and role metadata before bd operations. It guides staging .beads/issues.jsonl and validates standardized commit messaging, ensuring your feature branch stays synchronized and ready for bd pull, close, or create.

Can I use Beads Guard to avoid accidentally committing to master?

Yes. Beads Guard verifies you're on a feature branch before allowing Beads operations, preventing accidental master commits. It provides warning-only guidance and manual workflow steps to keep your work isolated on feature branches.

What's required to use Beads Guard in my repository?

Your repository must be Beads-enabled. Beads Guard then provides preflight checks on feature branches: it verifies branch context, master synchronization, clean working trees, and stale socket removal without requiring additional dependencies or configuration.

Why does Beads Guard check if my working tree is clean before bd operations?

A clean working tree prevents uncommitted changes from conflicting with Beads data during sync or rebase. Beads Guard verifies this state and ensures .beads/issues.jsonl is properly staged before bd pull, close, or create to maintain workflow integrity.