Skip to content

fix: Make sub-agent usage mandatory in skills #78

Closed

Description

@admarble

Summary

Skills were not consistently using sub-agents because instructions were suggestive rather than directive. Users had to explicitly say "use sub agents" in follow-up prompts to trigger the behavior.

Problem

  • /qa and /spec had sub-agent patterns documented but Claude would often skip them
  • Instructions like "Before planning, gather context using parallel agents" were interpreted as optional
  • Users had to remind Claude to "use sub agents" each time

Solution

Made sub-agent usage mandatory with directive language:

  1. Section headers now say "— REQUIRED" to signal this isn't optional
  2. Strong directive language: "You MUST spawn sub-agents. Do NOT run these checks inline..."
  3. Clarified reference sections: Bash command examples marked as "Reference" - what agents run internally, not for direct use
  4. Parallel/sequential mode: Both skills now respect agents.parallel setting

Files Changed

  • .claude/skills/qa/SKILL.md
  • .claude/skills/spec/SKILL.md
  • templates/skills/qa/SKILL.md
  • templates/skills/spec/SKILL.md

Why Not CLAUDE.md?

Considered adding global sub-agent instructions to a CLAUDE.md file, but this would:

  • Require users to configure their own projects
  • Make sequant less portable

By fixing the skill instructions themselves, sequant remains self-contained - users just install and run.

Testing

Verified /qa 75 in a fresh session spawned sub-agents correctly:

⏺ Task(Type safety and deleted tests check) Haiku 4.5
  ⎿  Done (3 tool uses · 13.9k tokens · 10s)                               

⏺ Task(Scope and size checks) Haiku 4.5
  ⎿  Done (4 tool uses · 14.2k tokens · 20s)                               

⏺ Task(Security scan on changes) Haiku 4.5
  ⎿  Done (12 tool uses · 27.4k tokens · 26s)

Commit

259bfde fix(skills): make sub-agent usage mandatory in /qa and /spec

Activity

  1. admarble commented on Jan 12, 2026

    @admarble
    ContributorAuthor

    Completed in commit 259bfde

  2. admarble commented on Jan 14, 2026

    @admarble
    ContributorAuthor

    Reopening - the implementation commit (259bfde) was lost before being pushed. The commit exists in reflog and can be recovered:

    git cherry-pick 259bfde

    See #85 for safeguards to prevent this in the future.

    What happened:

    • Commit was made directly on main at 19:44 on Jan 11
    • git reset --hard origin/main ran 2 minutes later
    • Local commit was wiped before being pushed
    • Issue was closed manually, assuming work was done
  3. admarble commented on Jan 14, 2026

    @admarble
    ContributorAuthor

    Recovered and merged via cherry-pick in commit 1c51260

    Changes:

    • Added "— REQUIRED" to sub-agent section headers
    • Added "You MUST spawn sub-agents" directive language
    • Marked bash command sections as "Reference" (what agents run internally)
    • Added parallel/sequential mode support to /spec

    Original commit was lost due to git reset --hard origin/main before push. Recovered from reflog. See #85 for safeguards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions