Skip to content

SKILL.md Step 1 uses a nonexistent git flag (git ls-files --cocanonical), so scan-target enumeration always errors #2

Description

@kesjam

skills/wrap-loops/SKILL.md line 29 instructs the agent to run:

git ls-files --cocanonical --exclude-standard

--cocanonical is not a git flag, so Step 1 always fails:

$ git ls-files --cocanonical --exclude-standard
error: unknown option `cocanonical'
usage: git ls-files [<options>] [<file>...]

(git 2.52.0, but this isn't version-specific — the flag has never existed.)

Impact

Step 1 is the scan-target enumeration step. In a real git repo the command errors, and the agent either falls through to the find fallback documented for the non-git case or improvises. The find fallback does not respect .gitignore, which is the stated reason for preferring git ls-files in the first place, so gitignored files can end up in the candidate set.

Suggested fix

Looks like a typo. The intended behavior ("respects .gitignore automatically") matches:

git ls-files --cached --others --exclude-standard

which lists tracked plus untracked-but-not-ignored files. If only tracked files are wanted, plain git ls-files is enough and --exclude-standard is a no-op.

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