Index of every page on this site: llms.txt
All skills
hardikpthv avatar

/agent-context-setup-basic

@53afcbc
Run it yourself

Use when starting or onboarding a project/repository and you want AI coding agents to understand it — generating the agent context/memory files (a canonical AGENTS.md plus CLAUDE.md, GEMINI.md, and Cursor bridges) that give any agent the project's structure, commands, and conventions every session, and keeping them updated as the project grows. Use whenever someone says "set up CLAUDE.md," "create AGENTS.md," "onboard this project for agents," "init the project context / instructions," "make this repo agent-ready," or starts a new repo.

Use this Skill: https://skilld.dev/gh/hardikpthv/agent-skills/agent-context-setup-basic

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesagent-files-map.md

≈458 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Agent context files — who reads what (re-verify)

These conventions shift; confirm against each tool's docs before relying on a path.

Agent Project file Global file Reads AGENTS.md?
Claude Code CLAUDE.md (or .claude/CLAUDE.md) ~/.claude/CLAUDE.md ❌ (bridge needed)
Codex CLI AGENTS.md (root + nested) ~/.codex/AGENTS.md ✅ native
Cursor AGENTS.md and/or .cursor/rules/*.mdc user rules ✅ native
Gemini CLI GEMINI.md ~/.gemini/GEMINI.md ⚙️ configurable (context.fileName)
Antigravity AGENTS.md + GEMINI.md ~/.gemini/GEMINI.md ✅ native (v1.20.3+)
GitHub Copilot .github/copilot-instructions.md + AGENTS.md — ✅ native

The bridge pattern (one source of truth)

Keep AGENTS.md canonical. Then per chosen agent:

  • Codex / Cursor / Antigravity / Copilot — nothing to do; they read AGENTS.md.
  • Claude Code — create CLAUDE.md that imports it:
    @AGENTS.md
    (or symlink: ln -s AGENTS.md CLAUDE.md — on Windows the import is safer than a symlink).
  • Gemini CLI — either point context.fileName at AGENTS.md in settings, or add a thin GEMINI.md that restates the essentials.
  • Copilot — optionally add .github/copilot-instructions.md (it also reads root AGENTS.md).

Notes

  • Nearest-wins: most tools read the closest AGENTS.md up the directory tree, so monorepos can put a package-level AGENTS.md alongside the root one.
  • Claude specifics: CLAUDE.local.md (gitignore) is for personal, uncommitted notes; /init can generate a starting CLAUDE.md and will fold in an existing AGENTS.md.
  • Generate only the bridges for agents the team actually uses — ask first.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill automates the creation of project-specific context files for AI agents. It is designed to help agents understand project structure and commands. However, it introduces a low risk of indirect prompt injection by instructing the agent to generate instructions based on untrusted repository content and to dynamically update those instructions based on session experiences.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 53afcbc. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 5 months ago

README badge

README badge for hardikpthv/agent-skills/agent-context-setup-basic