Skip to content

Polish from #40 review: Cursor {{clone}}, .claude/CLAUDE.md ignore, sync.py cleanups #45

Open

Description

@maceorichards

Small leftovers from the #40 final review (standards and correctness axes). Each is small enough for one PR.

What devflow users see

  • Cursor users who paste the template see a raw {{clone}}. Only the instructions-file install fills in the placeholder (lib/sync.py), but the sync's Cursor note says to paste global/claude-md-section.md as it is. Either print the rendered section or point to a rendered copy.

Repo

  • .claude/CLAUDE.md isn't git-ignored. The per-tool rules in .gitignore are root-anchored (/CLAUDE.md, /CLAUDE.local.md, /GEMINI.md), but AGENTS.md itself names .claude/CLAUDE.md as a file that stops Claude Code from reading AGENTS.md. Add it.

lib/sync.py cleanups

  • apply_all decides indentation by checking whether a status starts with WARN. Return the formatted line, or a flag, from sync_git_ignore instead.
  • The "add these lines yourself: …" text is built in two places in sync_git_ignore. Build it once.
  • clone_path() only returns tilde(ROOT). Inline it, or keep it only if the name earns its place.
  • git_ignore_target uses r.stdout.strip(), which also strips leading or trailing spaces that belong to a path. Use .rstrip("\n").
  • One line in git_ignore_target is over 100 characters; use raise ValueError(...) from None inside the except blocks.

Activity

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