Aller au contenu
Skillpedia
Prompts et LLM55k · #3358

bmad-project-context

Ce qu’il fait

Cette compétence fait rédiger et vérifier par un agent d'IA le fichier d'instructions qui indique aux agents comment travailler dans un dépôt. Elle s'adresse aux développeurs qui veulent que les agents respectent les règles de leur projet.

Quand l’utiliser

  • ✓Quand vous commencez à utiliser des agents d'IA dans un dépôt et avez besoin d'un fichier AGENTS.md.
  • ✓Quand les règles de votre projet changent et que les instructions des agents doivent être mises à jour.
  • ✓Quand un agent refait la même erreur et que vous voulez la consigner comme piège à éviter.

Lien du skill

https://github.com/bmad-code-org/BMAD-METHOD/blob/main/skills/bmad-project-context/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/bmad-code-org/BMAD-METHOD/blob/main/skills/bmad-project-context/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Configure le fichier AGENTS.md de mon dépôt pour que l'IA suive nos règles de sécurité et de codage.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent lit votre dépôt, vérifie les commandes et les règles qu'il trouve, et propose un petit bloc vérifié pour le fichier d'instructions. Vous approuvez chaque modification avant qu'elle ne soit écrite.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Overview

A conversation that produces a repository's agent instructions: a small verified block inside AGENTS.md. The user brings rules they want followed — governance, security, standards — and the repository supplies the rest, verified.

Conversational always; the user approves every write.

Args: intent (setup | adopt | refresh | record | audit); a target repo or path; extra source paths or URLs.

Resolution rules

  • Bare paths and {skill-root} (e.g. references/best-practices.md) resolve from this skill's installed directory.
  • {project-root} → the project working directory.
  • Target → the repository being described, defaulting to {project-root}. If it resolves to more than one working tree, or to one the user cannot commit in, ask before writing.

On Activation

  1. Resolve customization: uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow.

    • Script not found: BMad is not set up here. Offer to run the bmad skill's setup, installing bmad first if you do not have it (npx skills add bmad-code-org/BMAD-METHOD --skill bmad), then run the command again.
    • Any other failure: read {skill-root}/customize.toml directly and use defaults.

    Execute {workflow.activation_steps_prepend}; treat {workflow.persistent_facts} entries as standing context (file: = paths/globs to load, others verbatim).

  2. Config: if {project-root}/_bmad exists, uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} and read {output_folder}. Standalone: skip.

  3. Load references/best-practices.md and references/template.md before anything else. Every decision below is made against them.

  4. Detect intent and greet the user: setup (no instruction file in the target carries meaningful content — scaffolding alone, empty headings, a comment, a lone import line, is not meaningful; when unsure, adopt, since adopting a near-empty file costs one small ledger while setting up a meaningful one loses instructions), adopt (an instruction file has content but no managed block, whatever its state and whoever wrote it — the migration form of refresh; that file is the baseline and every instruction in it enters the ledger of step 1), refresh (a managed block exists), record (the user reports a mistake agents made), audit (re-verify and prune). A supplied intent that contradicts what detection finds — e.g. setup against a file with content — is surfaced and confirmed, never silently obeyed. Fold {workflow.external_sources} into the source list. Execute {workflow.activation_steps_append}.

Setup, Adoption, and Refresh Steps

No writes until step 5!

1. Assess and report

Read AGENTS.md, harness or agent specific rule files, docs folders, and any notes carrying lessons. Report what exists and how it measures up, per best-practices.md.

Existing instructions are the baseline being improved, never raw material to discard. Open a ledger: one entry per existing section and per independently meaningful instruction, opened at retain or rewrite, carrying what an agent would get wrong without it. Entries settle as evidence arrives in steps 2–4 — retain | rewrite | relocate | automate | delete, each with its reason, its evidence, the risk if it goes, a destination for a relocation, and an approval flag. Deletion needs one of the four grounds in best-practices.md, and a relocation destination must itself be loaded or sit behind an observable trigger — a move into a file nothing reads is a deletion and needs its ground. Setup has nothing to map and opens no ledger; refresh opens entries for the lines it proposes to change or remove, the block's own included. A lesson found outside the instruction files — a warning in a README, a notes file — is an ordinary candidate, not a ledger entry.

If the target contains separable units — a workspace manifest listing members, or directories carrying their own build manifest — name them and ask whether this run covers the root only, all of them, or which. Absent that evidence, do not ask. Sibling repositories are not children; each is its own target, offered in turn.

2. Ask what they bring

Rules to follow regardless of what the repo does: governance, security and compliance, coding standards, style guides, frozen areas. Ask for outside documents too — handbooks, wikis, architecture docs, MCP knowledgebases. Note the

Questions fréquentes

Écrit-elle des modifications sans demander ?

Non. La compétence indique que vous approuvez chaque écriture.

Qu'est-ce qu'un piège dans ce contexte ?

Un piège est une erreur d'agent consignée, pour que les instructions la signalent la fois suivante.

Peut-elle auditer les instructions existantes ?

Oui. Elle dispose d'un mode audit qui vérifie les instructions actuelles.

Détails

Description originale de l’auteur

Set up, adopt, refresh, or audit a repository''s agent instructions (the AGENTS.md block) so AI agents work well in that repo. Also records observed agent mistakes as pitfalls. Use when invoked by name

repo: bmad-code-org/BMAD-METHOD

Popularité

Étoiles GitHub
55k
Position au classement
#3358
Licence
—
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires