Création d'un nouveau projet de compétence

VérifiéSûr

Initialise un nouveau projet de compétence dans le format Anthropic Agent Skills. Permet de créer rapidement la structure d'un projet de compétence.

Spar Skills Guide Bot
DeveloppementIntermédiaire
1024/07/2026
Claude Code
#scaffolding#project-initialization#anthropic-agent-skills#kata#ahrena

Recommandé pour

Notre avis

Initialise un nouveau projet de skill dans le format Anthropic Agent Skills avec la disposition Ahrena.

Points forts

  • Valide le slug et la description selon la spécification officielle.
  • Génère automatiquement la structure complète du projet (SKILL.md, widgets, scripts, outils).
  • Permet de désactiver les composants inutiles via des options (with_widgets, with_tools, with_scripts).
  • Intègre les directives du fichier .ahrena/.directives pour personnaliser les chemins.

Limites

  • Nécessite la disposition Ahrena et le format Anthropic Agent Skills.
  • Ne crée pas le projet si le dossier de destination existe déjà (pas d'écrasement).
  • Ne modifie pas le fichier .ahrena/.directives.
Quand l'utiliser

Lorsque vous souhaitez créer un nouveau projet de skill conforme à la spécification Anthropic Agent Skills, en utilisant la structure Ahrena.

Quand l'éviter

Pour des projets qui ne suivent pas le format Anthropic Agent Skills, ou si le slug souhaité est déjà utilisé.

Analyse de sécurité

Sûr
Score qualité85/100

This skill merely describes a command to initialize a new project scaffolding. It contains no executable code, dangerous shell commands, network calls, or data exfiltration. It delegates to a predefined function (kata-init-skill) and only validates user parameters.

Aucun point d'attention détecté

Exemples

Basic skill creation
/cry-new-skill scheduled-payments-skill description="Schedules bank transfers when the user requests payment for a future date" license=Apache-2.0
Minimal skill without widgets or tools
/cry-new-skill my-skill description="A simple skill for logging" with_widgets=false with_tools=false with_scripts=python
Skill with custom language and human title
/cry-new-skill data-analyzer description="Analyzes datasets using Python tools" language=en human_title="Data Analyzer" license=MIT

New Skill Project. Initialization of a new skill project in the repository, in Anthropic Agent Skills format, with the Ahrena layout

Cry: New Skill Project

Prefix: cry- | Type: Recurring Command | Scope: Initialization of a new skill project in the repository, in Anthropic Agent Skills format, with the Ahrena layout

Usage

/cry-new-skill <slug> [options]

Parameters

| Parameter | Required | Description | Example | |-----------|:--------:|-------------|---------| | slug | Yes | Project name in kebab-case (1-64 chars, a-z/0-9/hyphen, no leading/trailing hyphen, no --) | scheduled-payments-skill | | description= | Yes | Single sentence for the frontmatter (1-1024 chars), with what it does + when to use | description="Schedules bank transfers when the user requests payment for a future date" | | language= | No | BCP 47; default = language.default in .directives | language=en | | license= | No | Identifier (Apache-2.0, MIT) or reference | license=Apache-2.0 | | human_title= | No | Human-readable title for the # H1 of SKILL.md | human_title="Scheduled Payments" | | with_widgets= | No | true (default) or false | with_widgets=false | | with_tools= | No | true (default) or false | with_tools=false | | with_scripts= | No | python (default), js, or false | with_scripts=js |

What the Command Does

  1. Validates slug and description against the Anthropic Agent Skills spec (regex and limits)
  2. Resolves paths.skills_root from .ahrena/.directives (default skills)
  3. Confirms the destination {paths.skills_root}/{slug}/ does not exist
  4. Invokes kata-init-skill with the received parameters
  5. Reports the created path, applied opt-outs, and next steps

Prompt Template

Context:
- slug: {{slug}}
- description: {{description}}
- language: {{language}} (optional)
- license: {{license}} (optional)
- human_title: {{human_title}} (optional)
- with_widgets: {{with_widgets}} (default true)
- with_tools: {{with_tools}} (default true)
- with_scripts: {{with_scripts}} (default python)

Task:
Invoke kata-init-skill with the parameters above. The kata:
1. Validates slug and description per codex-skill-anthropic-agent-skills
2. Copies framework/templates/skill-project-sample/ to
   {paths.skills_root}/{slug}/, replacing placeholders
3. Applies opt-outs (with_widgets, with_tools, with_scripts)
4. Ensures .gitignore contains .build/
5. Reports the result

Abort if: invalid slug, destination already exists, or template missing.

Output format:
Confirmation of the created project, list of subdirectories, next steps
for authoring. On error, specific message and suggested correction.

Invocation Example

/cry-new-skill scheduled-payments-skill \
  description="Schedules and approves bank transfers using widgets connected to Python tools. Use when the user wants to create or approve a scheduled transfer." \
  license=Apache-2.0

Expected output:

✅ Project created: skills/scheduled-payments-skill/
   SKILL.md, skill.config.json, .skill-manifest.json
   widgets/ (React + TS)
   scripts/ (Python)
   tools/ (MCP placeholder)
   references/REFERENCE.md

.gitignore: .build/ added.

Next steps:
- Edit SKILL.md (body)
- Add components in widgets/src/
- Add handlers in tools/handlers/
- Suggested next cry: `/cry-skill --mode implement --slug <slug>` to orchestrate authoring + validation + packaging via warrior-claudionor

Restrictions

  • The Cry does not modify .ahrena/.directives (per lex-directives)
  • The Cry does not create the project if the destination already exists; the user decides whether to remove or pick another slug
  • User messages in the language.default language; technical identifiers (slug, frontmatter, placeholder) preserved

Difference from Kata

| Aspect | Cry | Kata | |--------|-----|------| | Nature | 1:1 shortcut that gathers parameters and dispatches | Full scaffold procedure (8 steps) | | Validation | Parameter shape | Anthropic spec compliance + filesystem | | Effect | Invokes the Kata | Writes files, updates .gitignore |

Skills similaires