‹ BackHN Continuity

Thread

Claude Code now reads AGENTS.md if there is no Claude.md

741 points · 285 comments · datadrivenangel

  1. clutter55561 · · focus · HN ↗
    Don’t get too excited, Claude code still won’t detect skills on .agents/skills.
    1. nomel · · focus · HN ↗
      A post-checkout git hook can handle this unfortunate situation.

        mkdir -p ~/.githooks
        git config --global core.hooksPath ~/.githooks
      
        cat > ~/.githooks/post-checkout <<'EOF'
        #!/usr/bin/env bash
        if [ -d .agents/skills ] && [ ! -e .claude/skills ]; then
            mkdir -p .claude
            ln -s ../.agents/skills .claude/skills
        fi
        EOF
      
        chmod +x ~/.githooks/post-checkout
      1. ahurmazda · · focus · HN ↗
        Won’t you have to do it recursively for all child directories?
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.