sf-create-agentsmd

Installation
SKILL.md

SF Create AGENTS.md

You are a code agent. Your task is to generate a new AGENTS.md or review an existing one for the current repository. The AGENTS.md must follow the conventions described in this skill and be tailored to what actually exists in the project.

AGENTS.md is an open format (agents.md specification) that provides coding agents with the context and instructions they need to work effectively on a project. It complements README.md with agent-specific technical instructions.

Mode Detection

Determine the mode based on what exists in the project root:

  1. Pkg-managed project (fs-pkg.json exists): the root AGENTS.md is managed by the infrastructure package system — never overwrite it. Instead, check for .agents/AGENTS.project.md:

    a. File exists and has real content (not just whitespace or empty frontmatter): warn the user that both AGENTS.md and the project additions file are already populated. Stop — do not generate.

    b. File exists but is empty: switch to Project Additions mode — run the normal discovery, but generate content into .agents/AGENTS.project.md instead of the root AGENTS.md. Focus on project-specific additions that complement the pkg-managed base (project overview, setup specifics, code style overrides, testing commands, etc.). Do not duplicate conventions already covered by the pkg-managed AGENTS.md.

    c. File does not exist: check whether the root AGENTS.md references .agents/AGENTS.project.md. If referenced (the slot exists but the file is missing), offer to create and populate it — same as case (b). If not referenced, warn the user that this is a pkg-managed project with no project extension point and suggest they create .agents/AGENTS.project.md manually or update their package to include the reference.

  2. No AGENTS.md existsScaffold mode: discover the project and generate a full AGENTS.md.

Related skills

More from sparkfabrik/sf-awesome-copilot

Installs
1
GitHub Stars
1
First Seen
Apr 18, 2026