/vexana:addfrom vexana
Generates vexana INetworkModel classes, sendRequest service methods, and round-trip tests from JSON samples for Flutter projects using vexana 6.x.
Ships in vexana. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Targets vexana ^6.0.0. Read references/vexana-api.md and references/templates.md first; generate code only from those templates.
AppNetworkManager or a NetworkManager< construction in lib/). If there is none, stop and tell the user to run /vexana:init.{{E}} from that setup (EmptyModel or the generated error model), {{networkPath}} from its folder, and {{package}} from pubspec.yaml name.lib/features/, lib/feature/, lib/src/features/ that exists, even if it is empty; if none exists, lib/features/. {{featurePath}} is that root without lib/, plus the feature name: features/post.INetworkModel.METHOD /path (GET /posts, GET /posts/{id}), feature name (default: the model name in snake_case), model name (default: from the path's last static segment, singular UpperCamel: /posts → Post).Apply the "Type inference" table and naming rules in templates.md. For a top-level array, infer from all elements. Collect every Object? and List<Object?>? field, and every key whose Dart field name differs from the key, for the report.
If a class with the same name exists anywhere in lib/, or a target file exists, ask the user (reuse, rename, or skip) before writing anything. Do not write files for that input until they answer.
<feature>_service.dart from "Service" with only those methods, or add the methods (and interface entries) to the existing service.test/fixtures/<model_snake>.json, values unchanged:
cp <input> test/fixtures/<model_snake>.json. Never re-type a file's contents: a large API response would be regenerated token by token.test/helpers/fixture_reader.dart has dropNulls.dart analyze
flutter test test/{{featurePath}}/
Fix and retry at most twice; then report failures verbatim. Never edit a fixture or weaken an assertion to make a test pass.
Files created/changed, the service methods added, values replaced in a fake sample, fields typed Object? / List<Object?>? (the sample did not show their type — ask the user to tighten them), and renamed keys (JSON key → Dart field).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
vexana, network-model, codegen, json-to-model, flutter-service
npx claudepluginhub vb10/vexana --plugin vexana4 skills in this plugin
/initSet up vexana (the dio-based Flutter networking layer) in a Flutter project — adds the dependency, builds one NetworkManager, an optional error model and the test fixture helper, placed in the project's existing folder structure. Use when the user says "vexana kur", "vexana init", "set up vexana", "network katmanını kur", or before /vexana:add in a project without vexana./multiple-addGenerate vexana models, services, fake services, mocktail service tests and model tests for several JSON samples at once (a folder, several files or a pasted list), deduplicating shared nested types. Use when the user says "vexana multiple add", "bu JSON'ların hepsini ekle", "toplu model/servis üret", "generate services and tests for these endpoints", or gives more than one JSON response to wire up./refactorMigrate a Flutter project that already uses an older vexana (4.x or 5.x) to vexana 6.x — bumps the dependency, rewrites removed imports and immutable-model mutations, and flags call sites whose behaviour changed (removeAll, sendPrimitive, downloadFileSimple, cache keys). Use when the user says "vexana refactor", "vexana'yı güncelle", "6.x'e geçir", "migrate vexana", "upgrade vexana", or analyze errors appear after bumping vexana.Other plugins' skills for the same job