<< All versions

Skill v1.0.1

currentAutomated scan100/100
datacosmos-br/agents/flext-cli

+6 new

──Details
PublishedNovember 28, 2026 at 10:59 AM
Content Hashsha256:ab531807e45870e5...
Git SHAf32be10e5cc5
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 1.9 KB)
SKILL.md1.9 KBactive
SKILL.md · 34 lines · 1.9 KB

name: flext-cli description: "flext cli routes, declarative commands, result handlers, framework execution" metadata: version: "1.0.1" aihub.tags: '["activation:detected","decision:ADR-0038","detect:dependency:python:flext-cli","detect:selected-tag:flext","effective:2026-09-17","extends:flext-development","route:project","subject:flext","subject:python","usage:on-demand"]'


FLEXT CLI routes

Activate for a detected internal FLEXT consumer when adding or changing CLI commands: declarative ResultCommandRoute registration, typed input models, p.Result-returning handlers, success formatters, exit semantics, or the framework execution boundary. Do not activate for Result composition semantics ($flext-result), service layering ($flext-service), or config ownership deltas.

Load $flext-development and its ancestors first; this child owns only the route contract. Project code never imports typer or click and never builds commands by hand: flext_cli._utilities.framework is the single private adapter behind p.Cli.Application. Read the route procedure before edits; for the flext-infra form where the service class is the input model, read the model-as-command reference.

Route law: one frozen m.Cli.ResultCommandRoute per command — name, help_text, model_cls, handler, then success_message, success_formatter, success_type. Handlers receive the framework-validated input model and return p.Result; the framework resolves the success message (formatter, then value-derived, then static), emits it, and owns every exit path. Register through register_result_routes (batch) or register_result_route; execute only through u.Cli.framework_execute for adapter-owned apps, execute_external_command for foreign Click commands, and u.Cli.run* for subprocess bridging. Never parse argv, print success, or call sys.exit inside route or handler code.

← v1.0.0All versions