Keeps truST's architecture simple and well separated, and runs the automated architecture checks.

Apache-2.0Auto-check passedDevelopment

Install St Lsp Solid

skills CLI
$ npx skills add johannesPettersson80/trust-platform --skill st-lsp-solid -a claude-code

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

GitHub CLI
$ gh skill install johannesPettersson80/trust-platform st-lsp-solid --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/johannesPettersson80/trust-platform.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/st-lsp-solid .claude/skills/st-lsp-solid && 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
st-lsp-solid
GitHub stars
222
Token cost
~1.3k tokens
SKILL.md length
583 words
Files
1
Skills in repo
7
Repo updated
First seen
Licence
Apache-2.0

At a glance

Keeps truST's architecture simple and well separated, and runs the automated architecture checks.

  • Boundary changes in the runtime
  • SKILL.md covers Before changing structure, Rules, Architecture automation and Validation
  • Calls cargo and bash
  • Language server

What it does

St Lsp Solid is an agent skill from johannesPettersson80/trust-platform. Keeps truST's architecture simple and well separated, and runs the automated architecture checks. Use for refactors, module splits, ownership or boundary changes in the runtime, language server, IDE, CLI or xtask gates; for files nearing 1,000 lines; for runtime launcher, control, I/O, retain, watchdog or debugger flow; and for architecture-doctor, software maps, diagram claims, and static-analysis, fuzz, Miri, mutation or performance tooling.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Refactoring and Static analysis and SAST. It works with Rust and TypeScript. The repository describes itself as: truST Platform — IEC 61131‑3 Structured Text tooling suite. The licence is Apache-2.0.

When your agent uses it

  • Boundary changes in the runtime
  • Language server
  • For files nearing 1
  • For runtime launcher

Example prompts

  • “Use the st-lsp-solid skill to keep truST's architecture simple and well separated, and runs the automated architecture checks”
  • “/st-lsp-solid”

What it can do on your machine

Read from SKILL.md and the folder at commit b7d8ffb. 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

    Shell commands in SKILL.md call:

    • cargo
    • bash

    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

St Lsp Solid loads about 1.3k tokens when it runs. Until then it costs about 115 tokens; SKILL.md has 583 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~115
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from johannesPettersson80/trust-platform at commit b7d8ffb, republished under its Apache-2.0 licence (© johannesPettersson80). 583 words, ~1,257 tokens.

Download SKILL.mdSave it as .claude/skills/st-lsp-solid/SKILL.md (or your agent's skills folder).
name
st-lsp-solid
description
Keeps truST's architecture simple and well separated, and runs the automated architecture checks. Use for refactors, module splits, ownership or boundary changes in the runtime, language server, IDE, CLI or xtask gates; for files nearing 1,000 lines; for runtime launcher, control, I/O, retain, watchdog or debugger flow; and for architecture-doctor, software maps, diagram claims, and static-analysis, fuzz, Miri, mutation or performance tooling.

Architecture and structure

Hard rule (AGENTS.md): all logic is in Rust. Logic is anything whose result is stored, sent to a runtime or PLC, or decides an engineering or operator outcome. TypeScript only presents (drawing, layout, mouse interaction, view state) and forwards requests to Rust. Never add logic in TypeScript. Existing TypeScript logic is debt to move into Rust, not to extend.

A structural change never moves logic into TypeScript. Reshaping code that holds TypeScript logic moves that logic into a Rust crate, reached through a trust-lsp command or the runtime protocol.

Before changing structure

  • Name the change. State the module's single responsibility, and say whether the change is a behaviour-preserving refactor or a behaviour change.
  • Refactors keep behavior-lock tests passing before and after (trust-test-authoring).
  • Boundary crossings: when a change crosses runtime boundaries (launcher, control, I/O, retain, watchdog, debug), design the interface or subsystem split first.
  • Known gaps: read the Runtime SOLID section of docs/internal/testing/checklists/architecture-improvements.md, and add any new gaps you find there.

Rules

  • Transport and logic: keep transport separate from business logic. The control server stays apart from its handlers, and CLI parsing apart from runtime assembly.
  • External dependencies: put them behind traits. These include I/O drivers, retain stores and watchdog actions.
  • No god objects or god files: this includes xtask gate and proof files.
    • Add a small module for each responsibility, and compose them.
    • Split a file that passes about 1,000 lines or mixes responsibilities.
    • New validators and proof checks always go in a new module.
  • Stable contracts: keep public APIs and contracts stable unless the task changes them.
  • Unavoidable deviations: record them in docs/notes/runtime-refactor-notes.md with a follow-up item.
  • Diagrams: changes to ownership, data flow or execution flow update the PlantUML diagrams (AGENTS.md, "Diagrams").
Show full SKILL.md (297 more words)Show less

Architecture automation

  • Facts first: code facts are the truth, and diagrams are views checked against them. Prefer repo-specific doctor checks for project semantics; generic tools supply raw facts.

  • The doctor: run cargo xtask architecture-doctor before declaring architecture work complete.

    • Add --full-map for module splits, for large-file waivers, or for changes to xtask/config/full_map_policy.json.
    • bash scripts/architecture_safety_gate.sh is the CI form.
    • A new doctor check is proven by a known-bad fixture that fails before the fix and passes after.
  • Diagram order: regenerate diagrams only after the factual checks pass.

  • Tool records: plan and record tool work in docs/internal/testing/checklists/architecture-automation-tooling.md. If a tool cannot be installed or run, record the blocker and the fallback.

  • Tools by purpose:

    PurposeTools
    Code mapcargo metadata, guppy, cargo tree, cargo-modules, rustdoc JSON, ra_ap_syntax, ast-grep, tree-sitter, cargo-call-stack
    Forbidden patternsSemgrep, Dylint
    Supply chain and APIcargo deny, cargo audit, cargo machete, cargo udeps, cargo geiger, cargo about, cargo semver-checks, cargo public-api
    Test adequacycargo nextest, cargo llvm-cov, cargo mutants, cargo fuzz, property tests
    Deep checksMiri, sanitizers, loom, Valgrind, rr
    Performance and sizeCriterion, trust-runtime bench, cargo bloat, cargo llvm-lines, cargo build --timings, flamegraph
  • Variable initializers (parser, HIR, runtime): the doctor keeps these properties:

    • parse_var_initializer is called only in initializer-aware contexts;
    • HIR owns the source initializer metadata and never stores a runtime Value;
    • the runtime materializes lowered initializers through the initializer service;
    • VM local and static initializers behave like normal startup;
    • cross-project imports translate initializer IDs;
    • no _initializer discard or default_initializer: None regression comes back.

Validation

  • Runtime changes: run the runtime vertical (AGENTS.md).
  • Local checks: cargo test -p xtask and the doctor for the touched area are cheap enough to run on the Pi.
  • Performance: measure on the product CPU, an AM6442 Cortex-A53. Results from the Pi 5's Cortex-A76 or from the builder do not transfer.

© johannesPettersson80, 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

Just SKILL.md in .codex/skills/st-lsp-solid of johannesPettersson80/trust-platform.

Open the folder on GitHubat commit b7d8ffb

Compare with similar skills

St Lsp Solid 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.

St Lsp Solid compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
St Lsp Solid this skilljohannesPettersson80/trust-platform222—~1.3kAutomated safety check: PassApache-2.0
Coding Agentmastra-ai/mastra29k—~2.3kAutomated safety check: PassCustom licence
jscpd Duplicate Code Detectorkucherenko/jscpd6.4k—~4.5kAutomated safety check: PassMIT
Rust Architectsergigp/yarrtube141—~6.1kAutomated safety check: PassMIT
Maintainability Reviewpmndrs/glyph395—~1.7kAutomated safety check: PassMIT
Code RefinerMathews-Tom/armory329—~3.1kAutomated safety check: PassMIT

Similar skills

  • Coding Agent

    mastra-ai/mastra

    Authoring playbook for building agents that write, edit, review, or refactor code.

    29k GitHub stars~2.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Finds duplicated code in 220+ languages with jscpd, reports exact, renamed and near-miss clones in a compact agent-friendly format and measures duplication.

    6.4k GitHub stars~4.5k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Rust Architect

    sergigp/yarrtube

    Architecture, naming, and testing conventions guidelines for architecting Rust codebases.

    141 GitHub stars~6.1k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Audit and improve repository code milestone by milestone for correctness, clarity, local reasoning, DRY design, explicit state modeling, panic resistance, and trustworthy TypeScript boundaries.

    395 GitHub stars~1.7k tokensUpdated today
    DevelopmentAuto-check passed
  • Code Refiner

    Mathews-Tom/armory

    Deep code simplification and refactoring preserving behavior across Python, Go, TypeScript, Rust.

    329 GitHub stars~3.1k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • Docstring Generator

    espennilsen/pi

    Generate and update language-idiomatic doc comments for TypeScript (TSDoc/JSDoc) and Rust (Rustdoc).

    122 GitHub stars~1.6k tokensUpdated 19 days ago
    DevelopmentAuto-check passed

More from johannesPettersson80/trust-platform

  • Trust CI Release Gates

    johannesPettersson80/trust-platform

    Prepares and ships truST changes - changelog and version updates, CI parity, pre-push checks, the exact-SHA release-candidate guard, merge, tag and release verification.

    222 GitHub stars~3.6k tokensUpdated today
    Auto-check passed
  • Trust Remote Builder

    johannesPettersson80/trust-platform

    Runs truST builds and tests on the shared trust-builder machine.

    222 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Trust Test Authoring

    johannesPettersson80/trust-platform

    Routes truST behaviour changes from the written specification to a native executable test.

    222 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Trust Hmi Contracts

    johannesPettersson80/trust-platform

    Guides work on truST's HMI - the HMI Builder editor, page files, the runtime display at /hmi, bindings, commands and writes, authorization, alarms and trends, the plant library and the HMI tests.

    222 GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Trust Lsp Iec

    johannesPettersson80/trust-platform

    Guides IEC 61131-3 Structured Text language work in truST - lexer, parser, types, semantics, standard functions and function blocks, OOP, namespaces and editor features - checked against the standard.

    222 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Trust Vscode Quality

    johannesPettersson80/trust-platform

    Builds and verifies truST's VS Code extension - commands, webviews, snippets, debug flows, Control Studio, HMI Builder, Devices & Connections and the test harness.

    222 GitHub stars~1.2k tokensUpdated today
    Auto-check passed

Works with

Questions about St Lsp Solid

What does St Lsp Solid do?

Keeps truST's architecture simple and well separated, and runs the automated architecture checks. St Lsp Solid is an agent skill from johannesPettersson80/trust-platform. Keeps truST's architecture simple and well separated, and runs the automated architecture checks.

When should I use St Lsp Solid?

St Lsp Solid fits situations like: boundary changes in the runtime; language server; for files nearing 1; for runtime launcher.

How do I install St Lsp Solid in Claude Code?

Run `npx skills add johannesPettersson80/trust-platform --skill st-lsp-solid -a claude-code`. Or copy the skill folder (.codex/skills/st-lsp-solid in johannesPettersson80/trust-platform) into .claude/skills/st-lsp-solid in your project. Claude Code loads it when a task matches its description.

How do I install St Lsp Solid in Codex?

Run `npx skills add johannesPettersson80/trust-platform --skill st-lsp-solid -a codex`. Or copy the skill folder (.codex/skills/st-lsp-solid in johannesPettersson80/trust-platform) into .agents/skills/st-lsp-solid in your project. Codex loads it when a task matches its description.

Can I use St Lsp Solid 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 johannesPettersson80/trust-platform --skill st-lsp-solid -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/st-lsp-solid, .gemini/skills/st-lsp-solid, .github/skills/st-lsp-solid and .opencode/skills/st-lsp-solid in your project.

What does St Lsp Solid need to run?

Going by SKILL.md and its folder, St Lsp Solid needs the command-line tools its instructions call (cargo and bash).

Does St Lsp Solid 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 St Lsp Solid 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. Review the folder before installing.

What licence does St Lsp Solid use?

St Lsp Solid is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does St Lsp Solid use?

About 1.3k tokens (SKILL.md is roughly 5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to St Lsp Solid?

Skills that share tags, products or a category with St Lsp Solid: Coding Agent (mastra-ai/mastra, 29k stars), jscpd Duplicate Code Detector (kucherenko/jscpd, 6.4k stars), Rust Architect (sergigp/yarrtube, 141 stars) and Maintainability Review (pmndrs/glyph, 395 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains St Lsp Solid?

johannesPettersson80 (a GitHub user) maintains it in johannesPettersson80/trust-platform, which has 222 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 11, 2026.

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