add-console-command

add-console-command is a skill for Claude Code, Codex from tarlepp/symfony-flex-backend. It costs 28 tokens per session (787 once invoked), scanned A, original, MIT.

A coding guide for adding or changing Symfony console commands. These are terminal commands that accept input, perform application work, print results, and return a status code.

In plain words
What is it for?
Use it when changing a command's arguments, options, interactive behavior, execution logic, output, or exit status in a Symfony PHP project.
Why use it?
It helps preserve existing command names and input/output behavior while following the project's dependency-injection and testing conventions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when changing a command's arguments, options, interactive behavior, execution logic, output, or exit status in a Symfony PHP project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tarlepp/symfony-flex-backend/add-console-command
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tarlepp/symfony-flex-backend --skill add-console-command
Clone the repo
git clone --depth 1 https://github.com/tarlepp/symfony-flex-backend

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-console-command

README.md
[![agentmods](https://agentmods.dev/badge/skills/tarlepp/symfony-flex-backend/add-console-command/github.svg)](https://agentmods.dev/skills/tarlepp/symfony-flex-backend/add-console-command)
Your own site
<a href="https://agentmods.dev/skills/tarlepp/symfony-flex-backend/add-console-command"><img src="https://agentmods.dev/badge/skills/tarlepp/symfony-flex-backend/add-console-command/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-console-command

Your own site · 80×15
<a href="https://agentmods.dev/skills/tarlepp/symfony-flex-backend/add-console-command"><img src="https://agentmods.dev/badge/skills/tarlepp/symfony-flex-backend/add-console-command.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 787 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.00787
Opus 5.5 $0.00011 $0.00315
Sonnet 5.5 $0.00006 $0.00157
Haiku 4.5 $0.00003 $0.00079

Measured today against content hash e3cc2e7f9b35, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-console-command scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/add-console-command/SKILL.md · 68 lines

How it starts

The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add or update a console command

Use this skill when adding a command under src/Command/ or changing a command's arguments, options, execution, or output.

Follow the shared skill guidance in .github/skills/shared-guidance.md.

Workflow

  1. Check composer.json and symfony.lock for the installed PHP and Symfony Console versions and recipes. Inspect the closest command under src/Command/, its helpers or traits, and any related tests before choosing a pattern. Commands here use #[AsCommand]; some define a NAME constant and configure inputs in the constructor or configure(). Follow the relevant local pattern rather than imposing one style on every command.
  2. Confirm the command's name, purpose, required inputs, options, interactive behavior, and expected exit statuses. Ask when missing details would change command behavior or affect destructive operations. Preserve existing CLI names and input/output contracts unless the request explicitly changes them.
  3. Keep the command's own logic to the minimum needed for the CLI boundary: read and validate command input, call the appropriate application logic, format output, and return an appropriate status. First look for an existing service or resource that owns the operation and reuse it. If no suitable service exists, create one in the appropriate application layer and put the operation's business logic there; do not implement or duplicate that logic in the command. Keep reusable work out of command helpers and traits too.
  4. Register commands using the repository's Symfony attribute and autowiring patterns. Use typed constructor dependencies and call the parent constructor as established by nearby commands. Define arguments and options with Symfony Console APIs or existing helpers such as HelperConfigure where they fit. Keep input names, defaults, descriptions, and requiredness clear.
  5. Handle both interactive and non-interactive invocation deliberately. Do not assume prompts can run in scripts or CI; require needed input or provide a documented non-interactive path. Validate user-supplied values before performing operations. Report failures explicitly with useful console output and an appropriate non-success status; do not hide errors or report success after a failed operation.
  6. Treat credentials and other sensitive values as secrets. Do not write them to logs or incidental output. If a command intentionally displays a newly created credential, follow the established credential-management behavior and avoid exposing it more than required.
  7. If the command invokes another process, follow existing Process usage and pass arguments as an array rather than constructing a shell command string. Check failure status and surface actionable error information without leaking secrets.
  8. Follow .github/skills/write-tests/SKILL.md for test selection and conventions. Use Symfony Console test tools such as CommandTester when testing command input, output, exit status, and interactive/non-interactive behavior. Cover success and relevant invalid-input or failure paths; test business logic at its service/resource boundary rather than duplicating it in command tests. Add focused service tests when creating a service.
  9. Update command documentation, help text, or related usage docs when the command's public CLI contract or expected operations change.

Read the full file on GitHub · 68 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 68 lines · 28 tokens per session scan A e3cc2e7f9b35

Subscribe to this mod's changes

add-console-command is a skill published in the GitHub repository tarlepp/symfony-flex-backend (288 stars, last pushed yesterday), licensed MIT. It adds 28 tokens to every session and 787 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-20.