cssmagic/agent-config/init-project-agent-skills

Claude Code and agent skill by cssmagic/agent-config

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when initializing project-level agent skill directories, especially when a repository needs .agents/skills, .agents/skills/.gitkeep, and .claude/skills linked to the shared project skills directory.

Install

npx vskill@latest install cssmagic/agent-config/init-project-agent-skills

SKILL.md

The same SKILL.md was published earlier as cssmagic/agent-config/init-project-agent-skills.

Init Project Agent Skills

Purpose

Initialize project-level agent skills so Codex, Cursor, and Claude Code can share one repository-local skill directory.

The target state is:

  • <project>/.agents/skills/
  • <project>/.agents/skills/.gitkeep when the skills directory is empty
  • <project>/.claude/skills -> ../.agents/skills

The Claude Code path uses a relative symlink so the project can move without breaking the link.

Required Input

Each run needs a project directory.

Choose the project directory in this order:

  • If the user provides a directory when invoking the skill, use it.
  • Otherwise, use the current working directory.

Workflow

Run the bundled script from this skill directory. When the current working directory is the project directory, the project argument may be omitted:

bash
python3 scripts/init_project_agent_skills.py

When the project directory is explicit:

bash
python3 scripts/init_project_agent_skills.py "/absolute/path/to/project"

To preview changes without modifying files:

bash
python3 scripts/init_project_agent_skills.py --dry-run "/absolute/path/to/project"

Defaults

  • Missing .agents/ and .claude/ directories: create them.
  • Missing .agents/skills/: create it.
  • Missing .agents/skills/.gitkeep: create it only when .agents/skills/ is empty, so Git can track the otherwise-empty skills directory.
  • Existing files or directories inside .agents/skills/: skip .gitkeep creation.
  • Existing correct .claude/skills symlink: keep it unchanged.
  • Existing .claude/skills symlink pointing elsewhere: update it and report the previous target.
  • Existing .claude/skills regular directory, regular file, or special file: refuse to overwrite and stop.

Never delete existing project skills.

Conflict Handling

The script runs preflight checks before creating or updating anything. If a conflict is found, it reports all known conflicts and exits without partial changes.

It refuses to proceed when:

  • The project path does not exist.
  • The project path is not a directory.
  • .agents or .claude exists as a non-directory or symlink.
  • .agents/skills exists but is not a real directory.
  • .agents/skills/.gitkeep exists but is not a regular file.
  • .claude/skills exists and is not a symlink.

If .claude/skills already exists as a directory, ask the user to manually move any useful skills into .agents/skills/, remove the old directory, and re-run the script. This avoids accidental data loss.

Reporting

Summarize with:

  • project directory
  • source skills directory
  • source result: created_directory, unchanged, or dry-run equivalent
  • .gitkeep result: created_file, unchanged, skipped_non_empty_directory, or dry-run equivalent
  • target path
  • target result: created_symlink, updated_symlink, unchanged, or dry-run equivalent
  • previous symlink target when the target was updated

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cssmagic/agent-config/init-project-agent-skills/badge)](https://verified-skill.com/skills/cssmagic/agent-config/init-project-agent-skills)

Something wrong with this skill or its page? Tell us.