Skip to content

bug(pi): .agents/skills (Antigravity render target) is auto-discovered by pi and outranks the maintained source #209

Closed

Description

@danielvm-git

Fix order: 4 of 7 · Severity: P1 · Related: #208 (channel matrix)

Symptom

Inside a bigpowers checkout, pi serves the skills from .agents/skills/ — a generated Antigravity artifact — not from the source or the package copy. Editing skills/*/SKILL.md and forgetting sync-skills.sh silently serves stale content. The startup banner shows it:

"align-grid" collision:
  ✓ auto (project) ~/Developer/bigpowers/.agents/skills/align-grid/SKILL.md

.agents/skills has files dated Jul 24, while skills/ and .pi/skills are regenerated by every sync.

Root cause

  • scripts/lib/install-targets-b.sh:90 renders the Antigravity target to $REPO_ROOT/.agents/skills, and bin/setup.js:56 uses .agents/skills as Antigravity's localPath.
  • pi treats .agents/skills as a first-class Agent Skills root for the project and its ancestors (src/core/package-manager.ts:2644-2660, docs/skills.md:60-63), ranking it project scope — above user and package copies.
  • Nothing marks the directory as "another host's render target", and repo .gitignore does not help: pi's ignore matcher for a skill root only reads ignore files inside that root (src/core/skills.ts:47-72).

So one host's generated output is silently promoted to another host's source of truth. On top of that, .agents/skills is a byte-identical duplicate of .pi/skills — one render target too many.

Fix direction

  • Rename host render targets to paths no host auto-discovers, e.g. .bigpowers/rendered/antigravity/skills/, and point install-targets-b.sh / bin/setup.js at the new path.
  • Add a test that asserts no render target path is a discovery root of any supported host (pi .agents/skills, .pi/skills; Claude .claude/skills; Gemini .gemini/…; Cursor .cursor/rules).
  • If the Antigravity layout must stay at .agents/skills for the installed case, render it only into the install destination, never into the repo root.

Verify

ls .agents/skills 2>/dev/null            # must not exist in a dev checkout
pi                                       # "bigpowers: 80 skills loaded", zero collisions
bash scripts/sync-skills.sh && git status --short   # no changes under a host discovery root

Activity

  1. added
    bug
    quality
    on Nov 6, 2026
  2. added a commit that references this issue on Nov 6, 2026
  3. github-actions commented on Nov 6, 2026

    @github-actions

    🎉 This issue has been resolved in version 2.93.8 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

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

    bugqualityreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions