skills/skills/langbot-skills-maintenance/references/curation-workflow.md
Use this checklist when the repository starts accumulating repeated cases, copied steps, or overlapping troubleshooting entries.
bin/lbs case listbin/lbs case list --json --priority p0 --automationbin/lbs case list --readybin/lbs case list --machine-readybin/lbs suite listbin/lbs fixture listrg "sandbox|provider|pipeline|plugin|knowledge|mcp" skillsrg "If .* fails|Known Pitfalls|Debug Chat|/api/v1" skillsreferences/fixtures/ plus fixtures/fixtures.jsontroubleshooting/cases/suites/SKILL.mdMerge when two files share the same trigger, root cause, and fix. Keep the stronger id and move missing patterns into it.
Split when a file mixes unrelated failure modes or requires different fixes. Each troubleshooting id should map to one diagnosis path.
Move repeated step lists out of cases and into a reference when more than one case would need the same prompt, UI path, or log interpretation.
Add or update a suite when developers repeatedly run the same ordered group of cases. Do not copy case steps into suites; use bin/lbs suite plan <suite-id> to expand the group.
Use bin/lbs suite start <suite-id> and bin/lbs suite report <suite-id> --evidence-dir <dir> when validating that a suite is operational end to end.
Add or update fixtures/fixtures.json when a case depends on a deterministic file, plugin package, or local test server. The manifest should use repo-relative paths under the owning skill and should not contain machine-local absolute paths.
When adding Debug Chat Playwright automation, reuse scripts/e2e/lib/debug-chat.mjs for navigation, prompt send, response leaf matching, and known failure classification. Keep case-specific prompts and expected sentinels in case YAML automation fields when possible.
For every changed case:
Ensure steps describe what to execute, not every command in the underlying implementation.
Ensure checks contain observable UI, log, network, or filesystem evidence.
Ensure diagnostics are fallback investigation hints, not pass criteria.
Ensure priority, risk, ci_eligible, and evidence_required match the actual repeatability and evidence burden.
Put must-have env vars in env / automation_env; put one-of choices such as URL-or-name in env_any / automation_env_any.
Ensure linked skills and troubleshooting ids exist.
Run:
bin/lbs validate
bin/lbs index --check
bin/lbs index
bin/lbs test plan <case-id>
Before handing off:
git diff --stat should show a focused change set.skills.index.json should be regenerated only by bin/lbs index.