Agent skill

Generative

by VectorSpaceLab in VectorSpaceLab/AREX-Skill

A skill your agent uses for PaddleViT GAN workflows with TransGAN or Styleformer: choose the generator/discriminator family, validate CIFAR10/STL10/CelebA/LSUN-LMDB inputs, generate or evaluate…

Apache-2.0Auto-check passed

Install Generative

skills CLI
$ npx skills add VectorSpaceLab/AREX-Skill --skill generative -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install VectorSpaceLab/AREX-Skill generative --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/VectorSpaceLab/AREX-Skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/repositories/repo-skills/paddlevit/sub-skills/generative .claude/skills/generative && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
generative
GitHub stars
328
Token cost
~2.9k tokens
SKILL.md length
1,381 words
Files
6 (incl. scripts, references)
Skills in repo
159
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses for PaddleViT GAN workflows with TransGAN or Styleformer: choose the generator/discriminator family, validate CIFAR10/STL10/CelebA/LSUN-LMDB inputs, generate or evaluate…

  • Works in 6 steps: Identify the family and operation before… → Choose the dataset and exact image size.… → Inspect the local data layout with the… → …
  • PaddleViT GAN workflows with TransGAN
  • SKILL.md covers Responsibility and boundaries, Route a request, Source command contract and Generation and evaluation…, plus 3 more sections
  • Runs Python scripts from its folder; calls python

What it does

Generative is an agent skill from VectorSpaceLab/AREX-Skill. Use for PaddleViT GAN workflows with TransGAN or Styleformer: choose the generator/discriminator family, validate CIFAR10/STL10/CelebA/LSUN-LMDB inputs, generate or evaluate image batches, interpret FID/PSNR/SSIM, and respect single- or multi-GPU and dependency boundaries. Excludes checkpoint porting, network downloads, and full dataset-scale training unless explicitly requested.

Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `references/data-formats.md`, `references/model-overview.md` and `references/troubleshooting.md`).

The repository describes itself as: A Skill Library for Automated Machine Learning. The licence is Apache-2.0.

When your agent uses it

  • PaddleViT GAN workflows with TransGAN
  • Styleformer: choose the generator/discriminator family
  • Validate CIFAR10/STL10/CelebA/LSUN-LMDB inputs
  • Evaluate image batches

Example prompts

  • “/generative”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Identify the family and operation before touching a config
  2. Choose the dataset and exact image size. The shipped Styleformer YAMLs map
  3. Inspect the local data layout with the checklist in
  4. Run the safe, deterministic synthetic smoke before a source build or a
  5. For a source model build, run from exactly one family directory and expose
  6. Record the final config, source commit, device, seed, local checkpoint

What it can do on your machine

Read from SKILL.md and the folder at commit ac3fe1a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Generative loads about 2.9k tokens when it runs, and up to ~9.1k if it reads all its reference files. Until then it costs about 98 tokens; SKILL.md has 1,381 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~98
When it runs · the whole SKILL.md, loaded when a task matches
~2.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~9.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from VectorSpaceLab/AREX-Skill at commit ac3fe1a, republished under its Apache-2.0 licence (© VectorSpaceLab). 1,381 words, ~2,948 tokens.

Download SKILL.mdSave it as .claude/skills/generative/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
generative
description
Use for PaddleViT GAN workflows with TransGAN or Styleformer: choose the generator/discriminator family, validate CIFAR10/STL10/CelebA/LSUN-LMDB inputs, generate or evaluate image batches, interpret FID/PSNR/SSIM, and respect single- or multi-GPU and dependency boundaries. Excludes checkpoint porting, network downloads, and full dataset-scale training unless explicitly requested.
disable-model-invocation
true
metadata.disco-role
operating
license
Apache 2.0

PaddleViT GANs

Responsibility and boundaries

Use this route when a request names the PaddleViT GAN module, TransGAN, or Styleformer, or asks to generate/evaluate images from one of those transformer GANs. The route owns:

  • the two model families' generator/discriminator contracts and shipped YAML variants;
  • the CIFAR10, STL10, CelebA, and LSUN-church LMDB data contracts;
  • safe generation/evaluation planning, image range/layout checks, FID/PSNR/SSIM interpretation, and training/evaluation resource boundaries;
  • dependency diagnosis for Paddle, Pillow, OpenCV, SciPy, LMDB, matplotlib, and tqdm; and
  • the download-free bundled contract smoke at scripts/generative_model_smoke.py.

Do not use this route for classification, detection, segmentation, generic Paddle export, or repository-wide environment operations. Do not port PyTorch weights or download checkpoints, Inception weights, or datasets as part of a safe generation/evaluation request. The source contains weight-porting helpers and external model links, but those are deliberately excluded. Full 50k-sample evaluation and multi-epoch/full-dataset training are expensive and require explicit user authorization, local data, local checkpoints, and a verified budget.

This is a self-contained operating guide. It does not import the original checkout at runtime. The source was inspected at PaddleViT commit 5ac7d89d4fd0e3235d055ff15d5b1b1315499d70; source paths in the evidence list are provenance, not runtime dependencies.

Route a request

  1. Identify the family and operation before touching a config:

    • choose TransGAN for the pure-transformer generator and two-scale transformer discriminator;
    • choose Styleformer for the style-vector mapping/synthesis generator and StyleGANv2-style convolutional discriminator;
    • choose generate for images only, eval for FID or metric reporting, and train only after the user explicitly accepts data/GPU/compute cost.
  2. Choose the dataset and exact image size. The shipped Styleformer YAMLs map CIFAR10→32, STL10→48, CelebA→64, and LSUN-church→128. The TransGAN YAML is CIFAR10→32. Do not silently reuse a 32-pixel config for a 48/64/128-pixel dataset.

  3. Inspect the local data layout with the checklist in references/data-formats.md. An absent optional dependency is a preflight failure, not a reason to create a fake dataset or claim evaluation passed.

  4. Run the safe, deterministic synthetic smoke before a source build or a costly run:

    bash
    python /path/to/this/skill/scripts/generative_model_smoke.py --help
    python /path/to/this/skill/scripts/generative_model_smoke.py --model all --device auto

    This checks small independent Paddle contracts only. It does not import the checkout, load a checkpoint, open a dataset, contact a URL, or prove historical GAN quality. If Paddle is unavailable, the script reports a clearly marked skip.

  5. For a source model build, run from exactly one family directory and expose only that directory on PYTHONPATH:

    bash
    cd gan/transGAN       # or gan/Styleformer
    export PYTHONPATH="$PWD:${PYTHONPATH:-}"

    Both families use common module names (config.py, utils.py, generate.py). Mixing both source roots can import the wrong family.

  6. Record the final config, source commit, device, seed, local checkpoint provenance, data counts, image range/order, metric feature extractor, and sample limits. If any of those are unknown, report the result as partial.

Source command contract

The source uses short single-dash flags. A safe command is a plan/template, not permission to download or run expensive work:

text
-cfg PATH             family YAML; recursive BASE entries are supported
-dataset NAME         cifar10, stl10, celeba, or lsun where wired
-batch_size N         per-process batch size
-data_path PATH       dataset root or family-specific image/LMDB directory
-image_size N         override only when model architecture supports it
-eval                 evaluation-only path
-pretrained PREFIX    source training/eval appends .pdparams in main scripts
-resume PREFIX        source expects PREFIX.pdparams and PREFIX.pdopt
-num_out_images N     generation count for generate.py
-out_folder DIR       generated image destination

generate.py has family-specific conventions. TransGAN's generator loads a state dictionary under gen_state_dict; Styleformer's standalone generator loader expects the saved generator dictionary directly, while the training scripts expect a combined gen_state_dict/dis_state_dict checkpoint. Verify the actual local file keys before loading. Do not add .pdparams to a -pretrained prefix when using the training/evaluation scripts; generation examples are inconsistent and may accept a complete filename. Prefer an explicit local-file check and a tiny load test over guessing.

Generation and evaluation procedure

Generation
  • Set the device before model construction. Use one visible GPU for a normal source generation run; CPU is suitable only for parser/shape diagnostics and may be impractical for the full transformer.
  • Seed Paddle (and NumPy/Python if used by the caller) before sampling. The source scripts use random latent tensors and do not promise a stable benchmark seed.
  • TransGAN samples z with shape [B, 256], calls Generator(z, epoch), and returns [B, 3, 32, 32] for the shipped CIFAR10 config. Styleformer samples z with shape [B, 512]; its c_dim is zero in the shipped configs, so the mapping network ignores labels even though eval code supplies a label tensor. It returns [B, 3, H, W] with H/W set by the chosen config.
  • Both source generation scripts postprocess model output with (output * 127.5 + 128).clip(0, 255).astype('uint8'), then transpose from CHW to HWC and write RGB PNGs. This assumes the model output is in a [-1, 1]-like range. TransGAN's final source Conv2D has no explicit tanh; inspect output statistics rather than treating the assumption as a proven invariant.
  • Keep generated tensors in NCHW for Paddle discriminators and metric feature extraction. Convert to HWC only at the image-file boundary.
Show full SKILL.md (656 more words)Show less
Evaluation

The source validation loop pairs each real batch with a random generated batch, converts fake images to [0,1] after uint8 clipping, and feeds both through the local FID implementation. MAX_REAL_NUM and MAX_GEN_NUM are converted to whole batches with integer division; a limit smaller than one batch can silently yield no usable samples. Check effective counts after batching.

FID is distribution-level and requires both real and generated collections, the same image preprocessing, a local compatible InceptionV3 parameter file, and enough samples to form non-degenerate statistics. The source FID class will otherwise call Paddle's URL weight helper, which violates this skill's no-network boundary. Pass a local premodel_path only in an explicitly approved evaluation environment; never let a safe smoke implicitly download it. The repository README's fid50k_full numbers are historical reference claims, not results produced by this skill.

PSNR and SSIM are paired image-fidelity metrics in the bundled source metric implementation. They require equal shapes, accept HWC or CHW, and expect pixel values in [0,255]; crop_border removes pixels on every edge. They are not substitutes for GAN FID when comparing unrelated generated and real sets. SSIM uses OpenCV's Gaussian filter and the source reverses channels in its implementation, so record channel order and do not compare its number to a differently configured library without a controlled fixture.

Training and device boundaries

Training is not a smoke:

  • TransGAN's single-GPU loop uses a hinge-style discriminator loss and updates the generator on alternating epochs; the config defaults to 300 epochs, AdamW, warmup/cosine scheduling, and gradient clipping. The discriminator can apply DiffAugment when DATA.DIFF_AUG is not effectively disabled.
  • Styleformer's loop uses a WGAN-GP-like objective, one discriminator update followed by five generator updates, and a gradient penalty. Its helper uses an explicit .cuda() for interpolation, so CPU training is not a valid substitute without a deliberate source fix. Its source also places uint8 clipping/scaling in the training path; verify current Paddle gradient behavior before claiming that an unmodified source run trains correctly.
  • Single-GPU scripts construct both networks and ordinary data loaders. The multi-GPU scripts use paddle.distributed, DataParallel, distributed batch sampling, and gather FID feature lists. -batch_size is per GPU, so effective batch size scales with visible process count. Set CUDA_VISIBLE_DEVICES and -ngpus consistently; do not infer that a CPU run verifies NCCL or multi-GPU behavior.
  • The prepared inspection evidence is Paddle GPU 2.6.2 on an A100 host with Pillow/OpenCV/SciPy/LMDB/matplotlib/tqdm imports and CUDA dependency smoke passing. This is environment evidence, not a guarantee that every Paddle-2.1-era script is unchanged-compatible with Paddle 2.6.2.

Verification ladder

Use the cheapest check that answers the question:

  1. Parse the YAML and inspect dataset/checkpoint paths without opening data.
  2. Run generative_model_smoke.py for deterministic, download-free tiny generator/discriminator shape and finite-value contracts.
  3. Build one source family on a tiny local/synthetic tensor and record actual output shapes. The inspected source smoke passed on gpu:0 for both shipped CIFAR10 configurations: each generator returned [1,3,32,32] and each discriminator returned [1,1] with finite values.
  4. Decode a few local data examples and verify range/order/shape. Test LMDB opening separately from model construction.
  5. Run a bounded local generation or metric calculation only with an explicit checkpoint, local Inception weights for FID, local data, and a declared sample count.
  6. Treat full training, 50k FID, multi-GPU eval, and historical model-zoo reproduction as expensive acceptance tests, not default verification.

A pass at an earlier level does not establish checkpoint compatibility, FID quality, dataset correctness at scale, or historical benchmark reproduction.

References and recovery

Use the focused references for details rather than expanding this router:

  • references/model-overview.md: model and discriminator internals, config matrix, tensor contracts, and source quirks.
  • references/workflows.md: safe generation/evaluation/training planning, single/multi-GPU commands, metric gates, and no-network rules.
  • references/data-formats.md: exact dataset layouts, transforms, path semantics, labels, ranges, and preflight checks.
  • references/troubleshooting.md: dependency, path, shape, metric, CUDA, and source-compatibility recovery.

When a problem is shared with Paddle installation, AMP, distributed launch, export, or inference, hand off to the repository's deployment/operations route instead of inventing a second global environment procedure.

© VectorSpaceLab, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (scripts, references) in skills/repositories/repo-skills/paddlevit/sub-skills/generative of VectorSpaceLab/AREX-Skill.

  • SKILL.md
  • references/data-formats.md
  • references/model-overview.md
  • references/troubleshooting.md
  • references/workflows.md
  • scripts/generative_model_smoke.py

Open the folder on GitHubat commit ac3fe1a

Compare with similar skills

Generative next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Generative compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Generative this skillVectorSpaceLab/AREX-Skill328—~2.9kAutomated safety check: PassApache-2.0
Generatealirezarezvani/claude-skills28k1 repos~1.1kAutomated safety check: PassMIT
Fal Generatenexu-io/open-design100k—~306Automated safety check: PassApache-2.0
Video Generationbytedance/deer-flow83k3 repos~1.4kAutomated safety check: PassMIT
Image Generationonyx-dot-app/onyx32k1 repos~1.7kAutomated safety check: PassCustom licence
Gan Style Harnessaffaan-m/ECC274k1 repos~3kAutomated safety check: PassMIT

Similar skills

  • Generate

    alirezarezvani/claude-skills

    Generate Playwright tests. An agent skill from alirezarezvani/claude-skills.

    28k GitHub starsUsed in 1 repo~1.1k tokens
    Testing & QAAuto-check passed
  • Fal Generate

    nexu-io/open-design

    Generate images and videos using fal.ai AI models. An agent skill from nexu-io/open-design.

    100k GitHub stars~306 tokensUpdated today
    Media & CreativeAuto-check passed
  • Video Generation

    bytedance/deer-flow

    Generates short videos from a structured JSON prompt, optionally guided by a reference image used as the first or last frame.

    83k GitHub starsUsed in 3 repos~1.4k tokens
    Media & CreativeAuto-check passed
  • Image Generation

    onyx-dot-app/onyx

    Generate or edit raster images (photos, illustrations, textures, sprites, mockups, logos, infographics) using the workspace's configured image-generation provider via onyx-cli image.

    32k GitHub starsUsed in 1 repo~1.7k tokens
    Media & CreativeAuto-check passed
  • Gan Style Harness

    affaan-m/ECC

    GAN-inspired Generator-Evaluator agent harness for building high-quality applications autonomously.

    274k GitHub starsUsed in 1 repo~3k tokens
    Auto-check passed
  • Structured Image Generation

    bytedance/deer-flow

    Turns an image request into a structured JSON prompt and runs a bundled Python script to generate the picture, optionally guided by reference images.

    83k GitHub starsUsed in 5 repos~2.9k tokens
    Media & CreativeAuto-check passed

More from VectorSpaceLab/AREX-Skill

All 159 skills in this repo
  • Agent Lightning

    VectorSpaceLab/AREX-Skill

    Use this repo skill for Agent Lightning package tasks: authoring trainable agents, tracing rewards and spans, running LightningStore/Trainer loops, using agl CLI services, choosing examples, and…

    328 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Agent Tools

    VectorSpaceLab/AREX-Skill

    A skill your agent uses when configuring LiteLLM for MCP tools, A2A agents, Claude Code/Cursor agent gateway traffic, MCP auth/OAuth, tool permissions, semantic filtering, or agent-specific proxy…

    328 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Agents And Awel

    VectorSpaceLab/AREX-Skill

    Build and debug DB-GPT agents, tools, skills, teams, and AWEL workflows, including deterministic local DAG runs and HTTP-trigger topology without assuming an LLM, credential, or external service.

    328 GitHub stars~2.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Agents And Middleware

    VectorSpaceLab/AREX-Skill

    Work on the actively maintained LangChain v1 agent package: initchatmodel, createagent, structured output, tools, middleware, embeddings initialization, provider routing, and agent runtime…

    328 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Agents Workflows

    VectorSpaceLab/AREX-Skill

    A skill your agent uses for giskard.agents async chat workflows, tools, prompt templates, structured outputs, retries, rate limiting, embeddings, and optional LiteLLM backend.

    328 GitHub stars~500 tokensUpdated 1 mo ago
    Auto-check passed
  • Alphafold3

    VectorSpaceLab/AREX-Skill

    A skill your agent uses for AlphaFold 3 input preparation, prediction command planning, output interpretation, and Python API inspection.

    328 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Generative

What does Generative do?

A skill your agent uses for PaddleViT GAN workflows with TransGAN or Styleformer: choose the generator/discriminator family, validate CIFAR10/STL10/CelebA/LSUN-LMDB inputs, generate or evaluate…. Generative is an agent skill from VectorSpaceLab/AREX-Skill. Use for PaddleViT GAN workflows with TransGAN or Styleformer: choose the generator/discriminator family, validate CIFAR10/STL10/CelebA/LSUN-LMDB inputs, generate or evaluate image batches, interpret FID/PSNR/SSIM, and respect single- or multi-GPU and dependency boundaries.

When should I use Generative?

Generative fits situations like: paddleViT GAN workflows with TransGAN; styleformer: choose the generator/discriminator family; validate CIFAR10/STL10/CelebA/LSUN-LMDB inputs; evaluate image batches.

How do I install Generative in Claude Code?

Run `npx skills add VectorSpaceLab/AREX-Skill --skill generative -a claude-code`. Or copy the skill folder (skills/repositories/repo-skills/paddlevit/sub-skills/generative in VectorSpaceLab/AREX-Skill) into .claude/skills/generative in your project. Claude Code loads it when a task matches its description.

How do I install Generative in Codex?

Run `npx skills add VectorSpaceLab/AREX-Skill --skill generative -a codex`. Or copy the skill folder (skills/repositories/repo-skills/paddlevit/sub-skills/generative in VectorSpaceLab/AREX-Skill) into .agents/skills/generative in your project. Codex loads it when a task matches its description.

Can I use Generative in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add VectorSpaceLab/AREX-Skill --skill generative -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/generative, .gemini/skills/generative, .github/skills/generative and .opencode/skills/generative in your project.

What does Generative need to run?

Going by SKILL.md and its folder, Generative needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Generative access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Generative safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Generative use?

Generative is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Generative use?

About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 6.2k tokens, read only when the agent opens those files.

What are the alternatives to Generative?

Skills that share tags, products or a category with Generative: Generate (alirezarezvani/claude-skills, 28k stars), Fal Generate (nexu-io/open-design, 100k stars), Video Generation (bytedance/deer-flow, 83k stars) and Image Generation (onyx-dot-app/onyx, 32k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Generative?

VectorSpaceLab (a GitHub organization) maintains it in VectorSpaceLab/AREX-Skill, which has 328 GitHub stars. The repository holds 159 skills in this directory. The repository was last updated on September 3, 2026.

Source: VectorSpaceLab/AREX-Skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.