Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

User Rules And Skills

github-actions[bot] edited this page Jun 4, 2026 · 2 revisions

Rules And Skills

BLXCode ships workspace-scoped rules (binding constraints) and skills (optional how-to guides) that the BLXCode Agent can list, read, and honor. Both live under .agents/ and are managed from the right panel.

On-disk layout

<workspace>/.agents/rules/
 index.json # enabled flags (harness-managed)
 rule-my-convention.md # one rule per file
<workspace>/.agents/skills/
 index.json # enabled flags + source metadata
 my-skill/
 SKILL.md # required for a valid skill folder

index.json files track which entries are enabled and (for skills) install provenance (git, npm, local, or agent). BLXCode writes them atomically (tmp + rename) and prunes orphan entries when reading.

Do not hand-edit index.json unless you know what you are doing; use the UI or agent tools instead.

Rules panel

Open Rules from the right workbench rail (LuShield icon).

The panel shares the same chrome as the Skills panel: a category filter row at the top (one chip per declared category, plus All), a themed separator, and a live search field. Together they filter entries by title, description, source/category metadata, and category selection.

Each rule is an expandable card (same pattern as Skills):

Collapsed Expanded
Title, summary, category chip, Enabled / Disabled pill, enable toggle Full rule body (Markdown), inline edit and save, remove

Use Create rule at the top of the tab to add a new rule-*.md file. The form validates name and body before writing to .agents/rules/. Rule summaries skip YAML frontmatter and use the paragraph below the ## Ziel heading (so the heading itself never leaks into the card's preview text).

Rules panel with create-rule form and expandable rule cards

Disabled rules are invisible to the agent — the system prompt treats them as if they did not exist.

Active rules are binding and non-negotiable; they outrank skill guidance when both apply.

Categories

Each rule can declare one optional category in its Markdown frontmatter (category: my-category) and in its .agents/rules/index.json entry. Multiple rules can share the same category, and legacy rule tags arrays are migrated at read time by taking the first tag as the category. Rule and skill cards show the category in a compact chip style in both collapsed and expanded states. The Category filter row at the top of the panel is driven by the same set.

Skills panel

Open Skills from the right workbench rail (LuPuzzle icon).

The panel shares the same chrome as the Rules panel: a category filter row at the top (one chip per declared category, plus All), a themed separator, and a live search field. Together they filter entries by title, description, source/category metadata, and category selection.

Skills panel with Core and User tabs and expandable skill cards

Core vs User tabs

BLXCode ships core harness skills inside the app (Better Harness). They are not files on disk in your workspace — they are embedded Markdown the agent reads via skills_read. The Skills tab is now scoped to user/workspace skills under .agents/skills only, hiding BLXCode's internal core harness skills from the UI while keeping them available to the agent backend.

Tab Contents
Core Built-in guides: file-access, memory, plans, tasks, rules-skills, harness, environment, shell, git, web, subagents (hidden from this UI tab — see below)
User Skills under <workspace>/.agents/skills/ that you install or author

Core skills are still discoverable by the agent via skills_list / skills_read, but they no longer clutter the Skills UI tab. Core skills show a core badge in the system tooling. The Skills panel is reserved for skills you can enable / disable / remove per workspace; Install skill appears only on the User tab.

The web core skill may show disabled_no_key when no Tavily/Brave API key is configured — configure keys under Harness settings → Agent → Web Tools (Agent Harness). The subagents core skill documents subagents.run — see Subagents.

Use the Core / User pill tabs at the top of the panel (counts per tab).

Each skill is an expandable card:

Collapsed Expanded
Name, summary, category chip, enable switch Lazy-loaded SKILL.md body on first expand
  • SKILL.md missing warning (user skills only) when the folder has no top-level SKILL.md
  • Enable/disable; remove only for non-core skills

Categories

Each skill can declare one optional category in its Markdown frontmatter (category: my-category) and in its .agents/skills/index.json entry. Multiple skills can share the same category, and the chips are the same compact style as Rule categories — so the filter row, the cards, and the search experience line up across both panels.

Use Install skill (User tab) to add a skill from:

Source Fields
Git name, repository URL, optional ref
npm name, package name, optional version
Local name, path to a folder containing SKILL.md

Installs stage into .install.<name>.tmp/, verify SKILL.md at the top level, then promote or roll back on failure.

Workspace bootstrap

When a workspace path is set (wizard, switch, or workbench restore), BLXCode runs skills_rules_bootstrap:

  • Creates .agents/rules/ and .agents/skills/ if needed
  • Seeds each index.json from on-disk content (existing files enter as enabled: true)
  • Skills without provenance default to source.kind = "local"
  • Manually disabled entries survive later bootstraps

Agent turn checklist

Every non-trivial agent turn should follow this order (documented in the system prompt):

  1. rules_list + rules_read on relevant active rules
  2. skills_list + skills_read on matching skills when the task warrants it (including core skills such as git or shell when using those tools)
  3. Resume check — continue from task_list / activePlanPath when the user says continue, resume, weiter, fortsetzen, and similar
  4. Memory, plans, and project context as needed
  5. Execute

Trivial conversational turns may skip steps 1–2.

Install or remove skills/rules only when the user explicitly asks.

Agent tools

Group Tools
Rules rules_list, rules_read, rules_write, rules_set_enabled, rules_remove
Skills skills_list, skills_read, skills_write, skills_set_enabled, skills_remove, skills_install

Use list_tools when you need the full catalog and parameter schemas.

Bootstrap flow

flowchart LR
 Open[Workspace opened]
 Boot[skills_rules_bootstrap]
 Disk[".agents/rules + skills"]
 Idx[index.json]
 Open --> Boot
 Boot --> Disk
 Boot --> Idx
 Idx -.->|enabled flags| Disk
Loading

See also

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /