AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Agents Md

skill-devarfeen-agent-skills-kit-agents-md · by devarfeen

Generate or refresh the workspace-root AGENTS.md and its CLAUDE.md redirect shim for a VS Code .code-workspace root. Any request to write, create, or generate an AGENTS.md file routes here — /writing-for-agents is style guidance for authoring agent-facing documents, not the generator. It creates the Project Matrix of PROJECT-CODEs and the workspace's non-negotiable rules. Use when establishing, b…

No reviews yet
0 installs
9 views
0.0% view→install

Install

$ agentstack add skill-devarfeen-agent-skills-kit-agents-md

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-devarfeen-agent-skills-kit-agents-md)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
28d ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Agents Md? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

AGENTS.md generator

Turns one .code-workspace file plus a small scan of its folders — nothing else — into the workspace-root AGENTS.md and its CLAUDE.md redirect shim.

Inputs

  • The target root must contain a *.code-workspace file (multi- or single-folder). If none exists, stop and do not generate files — the Project Matrix is built from its folders list; tell the user to rerun from a folder holding one.
  • Never read or copy the agent's own global or user instruction files (~/.claude/CLAUDE.md, ~/.codex/, global AGENTS.md, personal memory/rules) — no personal rule (co-author, memory, context, issue-routing) may appear in the generated files.

Rules

  • AGENTS.md is the single source of truth for Codex CLI, Claude CLI, Antigravity CLI, Cursor CLI, Opencode CLI, and GitHub Copilot CLI; all operating instructions — context, memory policy, issue routing, skill use — live there.
  • CLAUDE.md is only a redirect shim for Claude CLI: emit [assets/claude-md-template.md](assets/claude-md-template.md) byte-for-byte, nothing more, and never read other context from it.
  • Generate exactly one of each, at the workspace root — never per-project or per-repo AGENTS.md. The generated AGENTS.md is spartan and direct.

Workspace scan

Small-scan every workspace folder before generating: note any VISION.md/vision.md at the workspace or a project root (feeds North star) and detect each stack. Multiple stacks → the intro slot says so and warns against mixing conventions or code across projects.

Stack detection

The Stack cell is fact read from the app-root manifest and lockfiles — never guessed from a folder's name, a root-level manifest, or a file's mere existence.

  • Find the real app root — often nested (application/, app/, src/); read the manifest there and note the dir.
  • PHPcomposer.json: version from require.php, frameworks from require; CodeIgniter version from system/core/CodeIgniter.php CI_VERSION. A Livewire app must say Livewire.
  • Frontend build — list Vite/Tailwind only when vite/laravel-vite-plugin/tailwindcss are in the app's own package.json deps; Laravel never implies one.
  • JS / TSpackage.json: runtime + version; TypeScript when a typescript dep or tsconfig.json exists; package manager from the lockfile (package-lock.json → npm, yarn.lock → yarn, pnpm-lock.yaml → pnpm).
  • Python — framework from requirements.txt / pyproject.toml; version from Dockerfile FROM python:X.Y, .python-version, or requires-python.
  • A test runner is not the stack; name one only when there is no app framework.
  • Non-app folders"type": "library" in composer.json (or no app framework) means a package, noted VCS, branch when branch-installed; raw SQL/migration folders are " / raw SQL migrations"; the .-path folder is a meta workspace, not a code stack.

Project Matrix format

One row per .code-workspace folder, in folders order — never invent or drop projects. Columns exactly | Project | Path | Stack |:

  • Project: the PROJECT-CODE from the folder name — strip emojis, uppercase, collapse punctuation/space runs to single hyphens, trim leading/trailing hyphens (Payments APIPAYMENTS-API); path basename when name is missing; type prefix for non-app folders (PACKAGE-QUEUE, DB). Name the full PROJECT-CODE from the Project Matrix everywhere; never mix one project's conventions, tokens, or components into another.
  • Path: the folder path relative to the workspace root; . marks the meta/workspace row.
  • Stack: one terse line — language, every primary framework, build tooling, package manager; versions only when a manifest pins them; non-app folders state the role. No prose in cells.

Sample:

| PAYMENTS-API | ../payments-api  | PHP 8.3 / Laravel 13 / Vite / Composer + npm (application/) |
| DB           | ../db-migrations | MySQL / raw SQL migrations |

Emitted skeleton

Emit [assets/agents-md-template.md](assets/agents-md-template.md) byte-for-byte, filling only the bracketed slots (intro line, Project Matrix, skills tables + startup note, ### Runtime Tool-Calling tables, and the ### North star list when emitted). Three rules bind the verbatim parts:

  • Emit ### Matt Skill Routing only when Matt Pocock's skills are installed (/ask-matt, /grill-with-docs, or /to-spec resolves); otherwise delete the subsection — dead routing rules cost every session tokens.
  • Emit ### North star only when the scan found a vision file, listing each with its scope; never fabricate one or restate its content — the subsection points at the file. None found → delete it.
  • Keep Issue Titles exactly as concise as the skeleton has it — routing/label procedure lives in the issue skills, never here — and leave the two Context & Native Memory placeholders unfilled.

Working with skills

Generate the gradient and companion tables from references/skills-manifest.md — the single source; adding or moving a skill edits the manifest, never this file. Column semantics live in its header; kit and external skills render alike.

Fill the [RUNTIME TOOL-CALLING …] slot from references/tool-calling.md, opening a per-runtime *-tools.md only when a cell is missing or unclear. Emit three compact tables — skill invocation, parallel/background mechanism (drop the Custom agent files column), and highest elevated launch preset per runtime — inlined; never link the reference files (they do not ship) or restate the Local Orchestration rule. The elevated table must say those presets are used only when the user explicitly asks for highest/elevated/full/YOLO permission and prefers an isolated container, VM, dev container, or disposable worktree.

Versioning and regeneration

The skill version is v15. Both generated files carry the marker ` as their first line (the first line of each template asset in assets/). Bump it here and in both template assets together whenever these rules change. Pre-v6 files open with the older Generated by the agents-md skill` comment — still a valid marker, not hand-authored.

On run, check for an existing workspace-root AGENTS.md:

  • None — generate fresh.
  • Marker present — before overwriting, show a short diff (changed lines only) and confirm. If the user does not respond, stop without writing and say so.
  • No marker (hand-authored) — do not rewrite it; show what generation would add or change, merge only user-approved sections, and let the existing file win everywhere else.
  • Preserve user edits — carry over every user-filled placeholder value (especially the CONTEXT.md and specs/adr paths) and per-project on-demand reads.
  • Preserve foreign sections — carry over verbatim any section another skill added (e.g. ## Design System / UI Library from /design-system); regeneration replaces only sections this skill generates.
  • Regenerate the CLAUDE.md shim only if it is missing or its marker is stale.

Migrate docs/ → specs/ (ask first)

Pre-v7 workspaces kept the artifacts tree under docs/ instead of specs/. When any artifact subfolder (agents/, adr/, prompts/, qa/, port/, pixel-audit/, integration/, design-system/, release-notes/) still sits under docs/ — strays included — show what would move and ask first; declined or no response → keep the docs/ paths, never rename unattended. On approval, git mv per subfolder (plain mv when untracked), merging file by file into any existing specs// — never git mv docs specs wholesale. Rewrite docs// links to specs// in the moved files and any file linking them, update filled placeholder paths, and report every move. Non-artifact docs/ content (the GitHub Pages site) stays.

Output

Chat carries the pre-write diff, the migration move list and report, and the close: suggest /setup-matt-pocock-skills, and /design-system for each UI project, then stop — suggest only, never run them.

Completion criteria

  • [ ] AGENTS.md sections appear in template order; ### Matt Skill Routing present only when Matt's skills resolve, ### North star only when a vision file was found
  • [ ] Regeneration: foreign sections and user-filled values survive in the shown diff — or the run stopped without writing
  • [ ] Project Matrix row count equals the folders count; every Stack cell traces to a manifest actually read
  • [ ] Both generated files open with the current version marker; Context & Native Memory placeholders intact or carried over filled
  • [ ] diff of CLAUDE.md against the shim template is empty
  • [ ] Post-migration: docs/ holds only the GitHub Pages site; no moved artifact still links a docs/ path
  • [ ] Neither file leaks session data: dates, conversation references, machine-local absolute paths

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.