Skip to content
OpenSmartRoute
Skillv1.0.0

agent-folder-init

Add or repair .agents/ project context for an existing repo. Use for AI agent documentation, session tracking, task management, and coding standards; do not use as the primary new-product scaffold.

by shipshitdev(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from shipshitdev/skills (skills/agent-folder-init/SKILL.md). Install upstream with npx skills add shipshitdev/skills --skill agent-folder-init. Copyright stays with the author.

Agent Folder Init

Authorized Scope

Apply this engine only within the user's requested task and existing explicit authorization. Loading or delegating to it grants no additional authority. Preserve report-only restrictions and the caller's target, host, provider, and cost limits. Existing approval satisfies a gate only for the same actions and scope; obtain approval before expanding them. Forward these limits to delegates.

Contract

Inputs:

  • Existing project root
  • Project name and primary tech stack
  • Optional platform entry surfaces: Claude Code, Codex, and/or Cursor

Outputs:

  • Dry-run plan by default
  • .agents/ documentation structure and root AGENTS.md after explicit --write
  • Optional CLAUDE.md or .cursor/rules/agent-context.mdc only when that platform is explicitly selected; Codex uses AGENTS.md
  • Summary of planned, written, skipped, and unchanged files

Creates/Modifies:

  • .agents/, root AGENTS.md, optional CLAUDE.md, optional Cursor project rule, and .editorconfig
  • Does not create application source code

External Side Effects:

  • None in the default dry run; --write performs local file writes only

Confirmation Required:

  • Before any write: review the dry-run plan and explicitly rerun with --write
  • Before overwriting an existing entry file: add --force-entry-files; symlink and non-file targets are always refused
  • Before writing outside the current workspace

Delegates To:

  • project-init-orchestrator when starting a new product repo
  • fullstack-workspace-init / npx @shipshitdev/v0 when a new Shipshit.dev product should be scaffolded
  • agent-config-audit after generation to detect drift or stale config

Purpose

This skill plans, then scaffolds a lean AI agent documentation system including:

  • Session tracking (daily files in .agents/sessions/)
  • Durable project context in .agents/memory/ (one topic per file)
  • Supported platform entry surfaces without copying commands, rules, agents, user settings, or another project's configuration

When to Use

  • Adding AI coding-assistant context to an existing project
  • Setting up AI-first development workflows
  • Migrating an existing project to use structured AI documentation

For new Shipshit.dev product repos, prefer project-init-orchestrator, which routes to npx @shipshitdev/v0 and includes the standard .agents, .claude, and .codex setup.

Usage

Run the scaffold script:

python3 scripts/scaffold.py --help

# Basic usage
python3 scripts/scaffold.py \
  --root /path/to/project \
  --name "My Project"

# Review the plan, then write the shared files
python3 scripts/scaffold.py \
  --root /path/to/project \
  --name "My Project" \
  --write \
  --allow-outside

# Add only the documented Claude and Cursor entry surfaces
python3 scripts/scaffold.py \
  --root /path/to/project \
  --name "My Project" \
  --platform claude \
  --platform cursor \
  --write \
  --allow-outside

The default is always a dry run. --force-entry-files is the only flag that permits overwriting AGENTS.md, CLAUDE.md, or the generated Cursor entry rule. Other existing files are preserved.

Generated Structure

Documentation (.agents/)

.agents/
├── README.md                    # Navigation hub
├── memory/
│   └── README.md                # Source of truth for durable project facts
└── sessions/
    ├── README.md                # Session format guide
    └── TEMPLATE.md              # Session file template

Shared rules and coding standards go in the applicable AGENTS.md. Use AGENTS.override.md only for an intentional subtree override and CLAUDE.md only for Claude-specific additions. Durable supporting detail belongs in .agents/memory/.

Task tracking uses GitHub Issues (gh issue list, gh issue create) — not local task files.

Platform entry surfaces

AGENTS.md                         # shared instructions; native Codex entry
CLAUDE.md                         # only with --platform claude
.cursor/rules/agent-context.mdc   # only with --platform cursor

The scaffold never generates .codex/commands, copies user settings, or imports a library checkout. It copies only four .agents/ templates, .editorconfig, and the explicitly selected entry templates. Missing canonical assets are a hard failure before any write; there is no embedded or stale fallback.

Root Files

  • AGENTS.md - Shared project instructions and .agents/ navigation
  • CLAUDE.md - Optional Claude-specific additions that reference AGENTS.md
  • .editorconfig - Editor configuration

Key Patterns

memory/ Files

  • One topic per file: memory/architecture.md, memory/deployment.md, memory/entities.md, etc.
  • Every file carries a last_verified: YYYY-MM-DD front-matter field.
  • Transient or short-lived facts add status: temporary.

Session Files

  • One file per day: sessions/YYYY-MM-DD.md
  • Multiple sessions same day use Session 1, Session 2, etc. in the same file.

Customization

After scaffolding, customize:

  1. Root agent entry file - Add project-specific coding standards and "never do" rules
  2. .agents/memory/architecture.md - Document your architecture decisions
  3. .agents/memory/entities.md - Document your data entities
  4. .agents/memory/deployment.md - Document deployment steps and gotchas
  5. GitHub Issues - Create issues for tasks (gh issue create)
  6. Platform entry files - Add only harness-specific guidance that cannot live in shared AGENTS.md

Integration with Other Skills

This skill integrates with:

Skill How It Works Together
project-init-orchestrator Routes new product requests to v0 before lower-level setup
fullstack-workspace-init Uses v0 for new Shipshit.dev product workspaces
linter-formatter-init Sets up quality tooling in the scaffolded project
husky-test-coverage Enforces test coverage in pre-commit hooks

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/shipshitdev-skills-agent-folder-init/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

shipshitdev-skills-agent-folder-init.ocm.jsonjson
{
  "ocm": "1",
  "id": "shipshitdev-skills-agent-folder-init",
  "kind": "skill",
  "name": "agent-folder-init",
  "description": "Add or repair .agents/ project context for an existing repo. Use for AI agent documentation, session tracking, task management, and coding standards; do not use as the primary new-product scaffold.",
  "publisher": "shipshitdev",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "agents",
      "setup",
      "documentation",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Add or repair .agents/ project context for an existing repo. Use for AI agent documentation, session tracking, task management, and coding standards; do not use as the primary new-product scaffold."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/shipshitdev/skills",
      "path": "skills/agent-folder-init/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/shipshitdev/skills/blob/HEAD/skills/agent-folder-init/SKILL.md",
      "key": "shipshitdev/skills/skills/agent-folder-init/SKILL.md"
    }
  },
  "instructions": "# Agent Folder Init\n\n## Authorized Scope\n\nApply this engine only within the user's requested task and existing explicit\nauthorization. Loading or delegating to it grants no additional authority.\nPreserve report-only restrictions and the caller's target, host, provider, and\ncost limits. Existing approval satisfies a gate only for the same actions and\nscope; obtain approval before expanding them. Forward these limits to delegates.\n\n## Contract\n\nInputs:\n\n- Existing project root\n- Project name and primary tech stack\n- Optional platform entry surfaces: Claude Code, Codex, and/or Cursor\n\nOutputs:\n\n-",
  "cost": {
    "context_tokens": 1496
  }
}

Fetch it by URL: GET /api/v1/registry/shipshitdev-skills-agent-folder-init/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.