Source profileQuality 86/100Review permissions

letta-ai/letta-code/src/skills/builtin/generating-mod-envs/SKILL.md

generating-mod-envs

Generates and reviews mod learning env JSON files for Letta Code local mods. Use when asked to teach, learn, or optimize a mod behavior; create, draft, validate, improve, or explain envs for `/mods learn --env`; or design evaluation scenarios, memory fixtures, requiredResultMarkers, requiredTraceMarkers, negative controls, and candidate diversity hints.

Source repository stars
2,962
Declared platforms
0
Static risk flags
1
Last source update
2026-08-06
Source checked
2026-08-06

Decision brief

What it does—and where it fits

Use this skill to create JSON envs consumed by /mods learn --env= or bun scripts/mod-learning/learn-mod.ts --env . An env describes the mod behavior to learn and the scenario-suite eval used to score candidates.

Best for

  • Use when asked to teach, learn, or optimize a mod behavior; create, draft, validate, improve, or explain envs for `/mods learn --env`; or design evaluation scenarios, memory fixtures, requiredResultMarkers, requiredTrac…

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/letta-ai/letta-code --skill "src/skills/builtin/generating-mod-envs"
Safe inspection promptEditorial

Inspect the Agent Skill "generating-mod-envs" from https://github.com/letta-ai/letta-code/blob/455b13bfa127aae80bdca90aeaf793e1dfea9a7b/src/skills/builtin/generating-mod-envs/SKILL.md at commit 455b13bfa127aae80bdca90aeaf793e1dfea9a7b. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Workflow

    1. Define the behavior and eval before writing JSON. - What should the mod do? Tool, turn event, tool event, provider, command, status, etc. - What would a placebo/no-op mod fail? - What unique sentinel strings make success unambiguous? 2. Choose a path: - Repo example: docs/exa…

    Define the behavior and eval before writing JSON.What should the mod do? Tool, turn event, tool event, provider, command, status, etc.What would a placebo/no-op mod fail?
  2. 02

    Env shape

    Required top-level fields:

    name: human display name.slug: stable kebab-case run/candidate slug.objective: one-paragraph target for the generation agent.
  3. 03

    Quality rules

    Design the eval first. A useful env distinguishes success from a no-op mod.

    Design the eval first. A useful env distinguishes success from a no-op mod.Use unique sentinels, e.g. MY-MOD-CANARY-OK, not common phrases.Seed memoryFiles rather than depending on real user memory or repo files.
  4. 04

    Minimal scenario-suite example

    Review the “Minimal scenario-suite example” section in the pinned source before continuing.

    Review and apply the “Minimal scenario-suite example” source section.

Permission review

Static risk signals and limitations

Runs scripts

medium · line 23

The documentation asks the agent to run terminal commands or scripts.

bun src/skills/builtin/generating-mod-envs/scripts/validate-mod-env.ts path/to/env.json

Runs scripts

medium · line 26

The documentation asks the agent to run terminal commands or scripts.

If this skill is installed outside the source tree, run the same script from this skill directory: `scripts/validate-mod-env.ts`.

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score86/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars2,962SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
letta-ai/letta-code
Skill path
src/skills/builtin/generating-mod-envs/SKILL.md
Commit
455b13bfa127aae80bdca90aeaf793e1dfea9a7b
License
Apache-2.0
Collected
2026-08-06
Default branch
main
View the original SKILL.md

Generating mod learning envs

Use this skill to create JSON envs consumed by /mods learn --env=<path> or bun scripts/mod-learning/learn-mod.ts --env <path>. An env describes the mod behavior to learn and the scenario-suite eval used to score candidates.

Workflow

  1. Define the behavior and eval before writing JSON.
    • What should the mod do? Tool, turn event, tool event, provider, command, status, etc.
    • What would a placebo/no-op mod fail?
    • What unique sentinel strings make success unambiguous?
  2. Choose a path:
    • Repo example: docs/examples/mods/learning/<slug>.env.json
    • Local/private: any user-requested path
  3. Draft strict JSON. Start from assets/mod-learning-env.template.json if useful. No comments or trailing commas.
  4. Prefer evaluation.scenarios with at least:
    • happy path
    • discrimination/exact-target path
    • negative control
  5. Validate:
bun src/skills/builtin/generating-mod-envs/scripts/validate-mod-env.ts path/to/env.json

If this skill is installed outside the source tree, run the same script from this skill directory: scripts/validate-mod-env.ts.

  1. If asked to run it:
/mods learn --env=path/to/env.json --model=auto --backend=api --out=/tmp/<slug>-learn

The raw scripts/mod-learning/learn-mod.ts dev script detaches by default. Add --foreground only when a blocking pass/fail exit code is needed.

Use single-line --flag=value commands for TUI instructions.

Env shape

Required top-level fields:

  • name: human display name.
  • slug: stable kebab-case run/candidate slug.
  • objective: one-paragraph target for the generation agent.
  • requirements: concrete pass/fail behavior constraints.
  • evaluation: either a single prompt eval or a scenario suite.

Common optional fields:

  • targetModName: display metadata for the intended mod filename. The harness still chooses the candidate filename from slug unless --candidate-file-name is passed.
  • candidateDiversityHints: strategies assigned across multi-candidate runs.
  • modApiHints: concise API reminders that prevent bad generated code.
  • examples: small input/expected demos for the generation prompt.

Evaluation fields:

  • evaluation.outputFormat: use stream-json when checking trace markers.
  • evaluation.timeoutMs, evaluation.maxTurns: per-scenario defaults.
  • evaluation.memoryFiles: files seeded under eval $MEMORY_DIR.
  • evaluation.scenarios[]: scenario-specific overrides and fixtures.
  • In scenario-suite envs, do not add a top-level evaluation.prompt unless that prompt must run for every scenario. Assertion-only scenarios should have assertions and no prompt; only scenarios that require model behavior should define scenario.prompt.
  • requiredResultMarkers: literal strings required in the final answer.
  • requiredTraceMarkers: literal strings required in raw stdout/stderr.
  • forbiddenResultMarkers: final-answer strings that fail the run.
  • forbiddenTraceMarkers: raw trace strings that fail the run.

Quality rules

  • Design the eval first. A useful env distinguishes success from a no-op mod.
  • Use unique sentinels, e.g. MY-MOD-CANARY-OK, not common phrases.
  • Seed memoryFiles rather than depending on real user memory or repo files.
  • Include negative controls for non-use. If behavior should be conditional, verify it stays silent when not triggered.
  • Include discrimination scenarios when paths, IDs, or sources matter. Put a tempting wrong sentinel in an irrelevant fixture and forbid it in the final answer.
  • Put load failures in forbiddenTraceMarkers, usually:
    • [mods] failed to load
    • [extensions] failed to load
    • loaded 0 mod(s)
    • loaded 0 extension(s)
  • For eval-facing tools, require requiresApproval: false, parallelSafe: true, and a strict no-argument schema when applicable.
  • Avoid over-brittle trace markers. Prefer stable substrings like the tool name plus "message_type":"tool_return_message".
  • Keep requirements behavioral; put fragile implementation details in modApiHints only when needed.

Minimal scenario-suite example

{
  "name": "Hello tool mod learner demo",
  "slug": "hello-tool",
  "objective": "Learn a trusted local mod that registers a read-only hello_mod_ping tool returning a fixed sentinel.",
  "requirements": [
    "Register a tool named hello_mod_ping.",
    "The tool must accept no parameters, require no approval, be parallelSafe, and return the exact string HELLO-MOD-OK."
  ],
  "candidateDiversityHints": [
    "Use the smallest possible tool-only implementation.",
    "Add explicit defensive checks around the tool schema."
  ],
  "modApiHints": [
    "Use export function activate(letta) or a default export.",
    "Use letta.tools.register({ name, description, parameters, requiresApproval, parallelSafe, run }).",
    "A no-argument tool schema is { \"type\": \"object\", \"properties\": {}, \"additionalProperties\": false }."
  ],
  "evaluation": {
    "outputFormat": "stream-json",
    "timeoutMs": 900000,
    "maxTurns": 6,
    "forbiddenTraceMarkers": ["[mods] failed to load", "loaded 0 mod(s)"],
    "scenarios": [
      {
        "name": "happy-path",
        "prompt": "Call the hello_mod_ping tool, then answer with the exact text HELLO-MOD-OK.",
        "requiredResultMarkers": ["HELLO-MOD-OK"],
        "requiredTraceMarkers": ["hello_mod_ping", "\"message_type\":\"tool_return_message\""]
      },
      {
        "name": "negative-control",
        "prompt": "Answer without calling tools: what is 2 + 2?",
        "requiredResultMarkers": ["4"],
        "forbiddenTraceMarkers": ["hello_mod_ping"]
      }
    ]
  }
}

Alternatives

Compare before choosing

Computed 9929,907

HKUDS/Vibe-Trading

strategy-generate

Create, modify, and optimize quantitative trading strategies, then backtest and evaluate them.

Computed 97137

equinor/neqsim

neqsim-subsea-and-wells

Subsea production systems, DNV-RP-F109 on-bottom stability screening, DNV-RP-F105 free-span screening, DNV-RP-F101 corroded-pipeline screening, well design, SURF cost estimation, and tieback analysis with NeqSim. USE WHEN: designing subsea fields, screening pipeline/cable/umbilical seabed stability or inspected metal loss, sizing flowlines and umbilicals, estimating well costs, performing casing design, running tieback comparisons, or configuring subsea equipment (trees, manifolds, boosters, ris

Computed 97107

AI-Unified-Process/marketplace

browserless-test

Creates Vaadin Browserless server-side unit tests for Vaadin views covering navigation, component interactions, form validation, grid operations, and notifications. Use when the user asks to "write Browserless tests", "write Vaadin UI unit tests", "unit test a Vaadin view without a browser", "create view tests with the official Vaadin testing framework", or mentions Browserless testing, SpringBrowserlessTest, browserless-test-junit6, UI Unit Testing, or server-side Vaadin testing.

Computed 9723

freenet/freenet-agent-skills

dapp-builder

Build and maintain decentralized applications on Freenet using river as a template. Guides through designing contracts (shared state), delegates (private state), and UI, and through upgrading a live dApp safely. Use when user wants to create a new Freenet dApp, design contract state, implement delegates, build a Freenet-connected UI, OR upgrade an existing dApp — bump freenet-stdlib, ship a new contract/delegate version (v2), fix a bug that re-keys the WASM, or migrate state across a contract/de