بنقرة واحدة
bit-rules
Manage enforced rules — list, add, toggle, test patterns. The onboarding skill for rule enforcement.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Manage enforced rules — list, add, toggle, test patterns. The onboarding skill for rule enforcement.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Migrate a project from markdown to .bit. Converts CLAUDE.md, memory files, task lists, and plans to native .bit format. Use when setting up bit-lang in a project for the first time.
Show store health — entity counts, drift status, enforced rules, active tasks. Quick health check for bit-powered projects.
Sync between .bit files and .bitstore. Collapse files into the store or expand the store back to files. Use after editing .bit files or when you need fresh context from the store.
| name | bit-rules |
| description | Manage enforced rules — list, add, toggle, test patterns. The onboarding skill for rule enforcement. |
| user-invocable | true |
| argument-hint | [list|add|toggle|test|remove] |
Manage @Rule entities in the project's .bit store. Parse the argument to determine which subcommand to run. If no argument is given, default to list.
Show all rules with their enforcement status, patterns, and actions.
bit query "@Rule"
Format each rule as:
ID: @Rule:abc123
text: "Always work on dev branch"
enforced: true
scope: global
pattern: git checkout|git switch
action: block
Group by enforcement status — show enforced rules first, then advisory rules.
Ask the user for:
Then write the entity to a .bit file and collapse:
mutate:@Rule
text: "<user's rule text>"!
enforced: <true/false>?
scope: :<scope>!
pattern: "<regex>"
action: :<action>!
Append the entity to CLAUDE.bit (or rules.bit if CLAUDE.bit does not exist). Then collapse:
bit collapse . --output project.bitstore
Verify with:
bit query "@Rule"
Confirm the new rule appears in the output.
Ask the user which rule to toggle (by ID or text match). Then update the enforced field:
bit update @Rule:<id> enforced=true
or
bit update @Rule:<id> enforced=false
If bit update is not available, read the .bit file containing the rule, flip the enforced value manually, and re-collapse.
After toggling, confirm the new state:
bit query "@Rule"
Ask the user for:
Run the regex match and report:
Use a simple inline test — no external tools needed:
echo "<sample>" | grep -P "<pattern>" && echo "MATCH" || echo "NO MATCH"
This helps users validate their patterns before adding them as rules.
Ask the user which rule to remove (by ID or text match).
bit delete @Rule:<id>
If bit delete is not available, read the .bit file containing the rule, remove the mutate:@Rule block, and re-collapse.
After removal, confirm:
bit query "@Rule"
Verify the rule no longer appears.