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.
npx agentmods add commands/thebeardedbearsas/claude-craft/generate-widgetgit clone --depth 1 https://github.com/TheBeardedBearSAS/claude-craftWrote 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.
[](https://agentmods.dev/commands/thebeardedbearsas/claude-craft/generate-widget)<a href="https://agentmods.dev/commands/thebeardedbearsas/claude-craft/generate-widget"><img src="https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/generate-widget.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00007 | $0.02930 |
| Opus 5 | $0.00003 | $0.01465 |
| Sonnet 5 | $0.00001 | $0.00586 |
| Haiku 4.5 | $0.00001 | $0.00293 |
Grade A, and why
generate-widget 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 2d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 558 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Génération Widget Flutter avec Tests
Tu es un développeur Flutter senior. Tu dois générer un widget réutilisable avec documentation, tests unitaires et widget tests.
Arguments
$ARGUMENTS
Arguments :
- Nom du widget (ex:
CustomButton,UserCard) - (Optionnel) Type (stateless, stateful, hook)
Exemple : /flutter:generate-widget UserCard stateless
MISSION
Étape 1 : Créer le Widget
StatelessWidget
// lib/shared/widgets/{widget_name}.dart
import 'package:flutter/material.dart';
/// Un widget qui affiche {description}.
///
/// Exemple d'utilisation :
/// ```dart
/// {WidgetName}(
/// title: 'Mon titre',
/// onTap: () => print('Tapped'),
/// )
/// ```
class {WidgetName} extends StatelessWidget {
/// Le titre affiché dans le widget.
final String title;
/// Le sous-titre optionnel.
final String? subtitle;
/// L'icône affichée à gauche.
final IconData? leadingIcon;
/// Callback appelé lors du tap.
final VoidCallback? onTap;
/// Indique si le widget est activé.
final bool isEnabled;
/// Crée un nouveau [{WidgetName}].
const {WidgetName}({
super.key,
required this.title,
this.subtitle,
this.leadingIcon,
this.onTap,
this.isEnabled = true,
});
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
return Semantics(
button: onTap != null,
enabled: isEnabled,
child: Material(
color: Colors.transparent,
child: InkWell(
onTap: isEnabled ? onTap : null,
borderRadius: BorderRadius.circular(12),
child: Container(
padding: const EdgeInsets.all(16),
decoration: BoxDecoration(
color: theme.cardColor,
borderRadius: BorderRadius.circular(12),
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.05),
blurRadius: 10,
offset: const Offset(0, 2),
),
],
),
child: Row(
children: [
if (leadingIcon != null) ...[
Icon(
leadingIcon,
color: isEnabled
? theme.colorScheme.primary
: theme.disabledColor,
),
const SizedBox(width: 12),
],
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
title,
style: theme.textTheme.titleMedium?.copyWith(
color: isEnabled ? null : theme.disabledColor,
),
),
if (subtitle != null) ...[
const SizedBox(height: 4),
Text(
subtitle!,
style: theme.textTheme.bodySmall?.copyWith(
color: theme.textTheme.bodySmall?.color
?.withOpacity(0.7),
),
),
],
],
),
),
if (onTap != null)
Icon(
Icons.chevron_right,
color: isEnabled
? theme.colorScheme.onSurface.withOpacity(0.5)
: theme.disabledColor,
),
],
),
),
),
),
);
}
}
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.
- 2d ago First seen · 558 lines · 7 tokens per session scan A 7f334ddb2e84
generate-widget is a command published in the GitHub repository TheBeardedBearSAS/claude-craft (105 stars, last pushed 3d ago), licensed MIT. It adds 7 tokens to every session and 2,930 once invoked, about $0.0000 per session on Opus 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-09-03.
Other commands, from other repositories
test-suite
Run comprehensive test suite with coverage analysis.
write-tests
Generate a focused, production-quality test suite for a source file, detecting the project's existing test runner and conventions. Use when a source file needs a test suite that matches the project's existing conventions.
flutter-test
Run Flutter/Dart tests, report failures, and incrementally fix test issues. Covers unit, widget, golden, and integration tests.
building-flutter-apps-skill-ac1294fc
Flutter Riverpod app architecture and Windows installer delivery. Use before changing a Riverpod Flutter app/package or its Windows desktop packaging/update pipeline; skip non-Riverpod stacks and pure-Dart work.
perf-investigate
Drive an iOS performance or memory-leak investigation on using Memory Graph + Time Profiler. Enforce data-before-architecture and stacked PRs.
flutter-test
Run Flutter/Dart tests, report failures, and incrementally fix test issues. Covers unit, widget, golden, and integration tests.