Performance
static-web-server/static-web-server
Optimize or review performance for the Static Web Server (SWS) project — profiling, bottlenecks, resource usage, compression, and caching
Contains knowledge on Mikoto usage of Rust. An agent skill from mikotoIO/mikoto.
$ npx skills add mikotoIO/mikoto --skill rust -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install mikotoIO/mikoto rust --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/mikotoIO/mikoto.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/rust .claude/skills/rust && rm -rf skills-srcUse ~/.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/
Install the "rust" agent skill from https://github.com/mikotoIO/mikoto/tree/main/.claude/skills/rust into .claude/skills/rust/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rust", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/mikotoIO/mikoto/tree/main/.claude/skills/rustType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add mikotoIO/mikoto --skill rust -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install mikotoIO/mikoto rust --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mikotoIO/mikoto.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/rust .agents/skills/rust && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "rust" agent skill from https://github.com/mikotoIO/mikoto/tree/main/.claude/skills/rust into .agents/skills/rust/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rust", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mikotoIO/mikoto --skill rust -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install mikotoIO/mikoto rust --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mikotoIO/mikoto.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/rust .cursor/skills/rust && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "rust" agent skill from https://github.com/mikotoIO/mikoto/tree/main/.claude/skills/rust into .cursor/skills/rust/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rust", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/mikotoIO/mikoto.git --path .claude/skills/rust--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add mikotoIO/mikoto --skill rust -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install mikotoIO/mikoto rust --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mikotoIO/mikoto.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/rust .gemini/skills/rust && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "rust" agent skill from https://github.com/mikotoIO/mikoto/tree/main/.claude/skills/rust into .gemini/skills/rust/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rust", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install mikotoIO/mikoto rustInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add mikotoIO/mikoto --skill rust -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/mikotoIO/mikoto.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/rust .github/skills/rust && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "rust" agent skill from https://github.com/mikotoIO/mikoto/tree/main/.claude/skills/rust into .github/skills/rust/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rust", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mikotoIO/mikoto --skill rust -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install mikotoIO/mikoto rust --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mikotoIO/mikoto.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/rust .opencode/skills/rust && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "rust" agent skill from https://github.com/mikotoIO/mikoto/tree/main/.claude/skills/rust into .opencode/skills/rust/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rust", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
rustContains knowledge on Mikoto usage of Rust. An agent skill from mikotoIO/mikoto.
Rust is an agent skill from mikotoIO/mikoto. Contains knowledge on Mikoto usage of Rust. ALWAYS activate before interacting with the backend, or any part of the codebase written in Rust.
Its SKILL.md is about 2.7k 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 Backend & APIs. It works with Rust. The licence is MIT.
Read from SKILL.md and the folder at commit 88f7ff0. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
cargojustpnpmFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
docs.rsFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Rust loads about 2.7k tokens when it runs. Until then it costs about 37 tokens; SKILL.md has 589 words of instructions outside code blocks.
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.
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.
The full file from mikotoIO/mikoto at commit 88f7ff0, republished under its MIT licence (© mikotoIO). 589 words, ~2,688 tokens.
.claude/skills/rust/SKILL.md (or your agent's skills folder).The Rust backend lives in apps/superego/ (main API) and apps/content-proxy/ (media proxy).
apps/superego/src/
├── entities/ # Database models
├── routes/ # API handlers
├── middlewares/ # Auth, extractors
└── functions/ # Utilities (JWT, permissions, pubsub)Use the macros in src/entities/macros.rs:
// Database-backed entity
entity!(
pub struct Message {
pub id: Uuid,
pub channel_id: Uuid,
pub author_id: Option<Uuid>,
pub content: String,
pub timestamp: DateTime<Utc>,
}
);
// Non-database model (DTOs, payloads)
model!(
pub struct MessageSendPayload {
pub content: String,
}
);
// Database enum
db_enum!(
#[sqlx(type_name = "\"ChannelType\"")]
pub enum ChannelType {
Text,
Voice,
Document,
}
);Use helper macros for common queries:
impl Message {
db_find_by_id!("Message");
db_entity_delete!("Message");
db_list_where!(Message, list_by_channel, channel_id, channel_id, Uuid);
}For entities that need related data:
pub struct MessageExt {
#[serde(flatten)]
pub base: Message,
pub author: Option<User>,
pub attachments: Vec<Attachment>,
}
impl MessageExt {
pub async fn dataload(messages: Vec<Message>, db: &PgPool) -> Result<Vec<Self>> {
// Batch load relations to avoid N+1 queries
let author_ids: Vec<Uuid> = messages.iter().filter_map(|m| m.author_id).collect();
let authors = User::find_by_ids(&author_ids, db).await?;
// ... map and return
}
pub async fn dataload_one(message: Message, db: &PgPool) -> Result<Self> {
Ok(Self::dataload(vec![message], db).await?.pop().unwrap())
}
}Routes use Axum with aide for OpenAPI documentation.
use crate::error::{Error, Result};
use crate::middlewares::auth::Claims;
use axum::extract::{Path, Json};
async fn get_message(
Path((space_id, channel_id, message_id)): Path<(Uuid, Uuid, Uuid)>,
claim: Claims, // Requires authentication
) -> Result<Json<MessageExt>> {
let message = Message::find_by_id(message_id, db()).await?;
let message = MessageExt::dataload_one(message, db()).await?;
Ok(message.into())
}In the route module's router function:
use aide::axum::routing::{get_with, post_with, patch_with, delete_with};
pub fn router() -> AppRouter {
AppRouter::new()
.api_route("/", get_with(list, api_docs))
.api_route("/", post_with(create, api_docs))
.api_route("/:messageId", get_with(get, api_docs))
.api_route("/:messageId", patch_with(update, api_docs))
.api_route("/:messageId", delete_with(delete, api_docs))
}For automatic entity loading from path params:
use crate::middlewares::load::Load;
async fn get_space(Load(space): Load<SpaceExt>) -> Result<Json<SpaceExt>> {
Ok(space.into())
}Use the custom Error type from src/error.rs:
use crate::error::{Error, Result};
async fn example() -> Result<Json<Data>> {
// Use ? to propagate errors
let data = fetch_data().await?;
// Create specific errors
if !authorized {
return Err(Error::forbidden("You cannot access this resource"));
}
// Not found
let item = Item::find_by_id(id, db()).await?
.ok_or_else(|| Error::not_found("Item not found"))?;
Ok(data.into())
}Always use db() for the connection pool:
use crate::db::db;
// Insert
sqlx::query("INSERT INTO \"Message\" (id, content) VALUES ($1, $2)")
.bind(id)
.bind(content)
.execute(db())
.await?;
// Query
let messages: Vec<Message> = sqlx::query_as(
"SELECT * FROM \"Message\" WHERE channel_id = $1 ORDER BY timestamp DESC"
)
.bind(channel_id)
.fetch_all(db())
.await?;just new-migration <migration_name>This creates a file in apps/superego/migrations/. Write SQL directly:
-- Create new table
CREATE TABLE "Attachment" (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
message_id UUID NOT NULL REFERENCES "Message"(id) ON DELETE CASCADE,
filename TEXT NOT NULL,
url TEXT NOT NULL,
content_type TEXT NOT NULL,
size INTEGER NOT NULL
);
-- Add column
ALTER TABLE "Message" ADD COLUMN edited_at TIMESTAMPTZ;
-- Create enum
CREATE TYPE "AttachmentType" AS ENUM ('Image', 'Video', 'File');After creating migrations, read schema.sql for the current full schema.
Emit events via Redis pub/sub:
use crate::functions::pubsub::emit_event;
// After creating a message
emit_event("messages.onCreate", &message_ext, &format!("space:{}", space_id)).await?;
// After updating
emit_event("messages.onUpdate", &message_ext, &format!("space:{}", space_id)).await?;
// After deleting
emit_event("messages.onDelete", &MessageKey { channel_id, message_id }, &format!("space:{}", space_id)).await?;Register WebSocket commands and events in the router:
.ws_command("typing.start", |data: TypingPayload, state| async move {
// Handle client command
Ok(())
})
.ws_event("messages.onCreate", |data: MessageExt, state| async move {
// Filter/transform for this connection
Some(data)
})Use the permission functions in src/functions/permissions.rs:
use crate::functions::permissions::{permissions, Permissions};
async fn admin_action(claim: Claims, Load(space): Load<SpaceExt>) -> Result<Json<()>> {
permissions(&claim, &space, Permissions::ADMIN)?;
// ... admin-only logic
}Write unit tests inline with #[cfg(test)]:
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_something() {
// ...
}
#[tokio::test]
async fn test_async_thing() {
// ...
}
}"Message", "User")DateTime<Utc> with chronoOption<T> for nullable fieldsunsafe Rust - This codebase has no need for unsafe code. All functionality can be achieved with safe Rust..unwrap() or .expect() in production code - Always use ? operator or handle errors explicitly. The only exception is in tests or when the value is guaranteed to exist (with a comment explaining why)..clone() unless necessary - Prefer borrowing. If cloning is needed, consider if the data structure should use Arc instead.https://docs.rs/axum/latest/axum/apps/superego/Cargo.toml before adding new dependencies. The codebase already includes many utilities.moon :typecheck after changes - This checks both Rust and TypeScript. Always run before committing.moon :lint and address all warnings. Clippy catches common mistakes and suggests idiomatic Rust.schema.sql for current schema - Don't read individual migrations. The schema dump is always up-to-date and easier to understand..bind().dataload pattern to avoid N+1 query problems.Error type - Don't create new error types. Use Error::new(), Error::internal(), Error::forbidden(), etc.? - Let errors bubble up. The error type automatically converts to HTTP responses.db() singleton - Never create new database connections. The pool is managed globally.tokio::task::spawn_blocking for CPU-intensive work.dataload patterns and batch inserts/updates when possible.The backend uses aide to automatically generate OpenAPI documentation from route definitions. When you add or modify routes, entities, or API payloads, you need to regenerate the schema and frontend types.
moon :generate # Generates apps/superego/api.json and regenerates client bindingsThis runs the dump_api binary (src/bin/dump_api.rs) which builds the router and extracts the OpenAPI schema without starting the server.
After updating api.json, regenerate the TypeScript types:
cd packages/mikoto.js && pnpm run generateThis uses openapi-zod-client to generate Zod schemas and API client types in packages/mikoto.js/src/api.gen.ts.
Regenerate after any changes to:
# 1. Make backend changes
# 2. Verify Rust compiles
moon superego:typecheck
# 3. Regenerate API schema and frontend types
moon :generate
# 5. Verify everything compiles
moon :typecheckmoon :typecheck # Type-check Rust and TypeScript
moon :lint # Run clippy and eslint
moon :lint.fix # Auto-fix linting issues
moon :format # Format all code
moon :test # Run all tests
cargo run -p superego # Run just the Rust server
cargo test -p superego # Run Rust tests only
cargo check -p superego # Quick compilation check
just new-migration name # Create new migration
moon :generate # Regenerate OpenAPI schema and client bindings© mikotoIO, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/rust of mikotoIO/mikoto.
Open the folder on GitHubat commit 88f7ff0
Rust 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Rust this skillmikotoIO/mikoto | 132 | — | ~2.7k | Automated safety check: Pass | MIT | |
| Performancestatic-web-server/static-web-server | 2.4k | — | ~3.1k | Automated safety check: Pass | Apache-2.0 | |
| Dev Rulesrust-dd/tako | 162 | — | ~810 | Automated safety check: Pass | MIT | |
| Nxvutensils/nxv | 136 | — | ~7.9k | Automated safety check: Notes | MIT | |
| Release WorkflowGoldziher/spikard | 123 | — | ~909 | Automated safety check: Pass | MIT | |
| Rust ConventionsGoldziher/ai-rulez | 158 | — | ~746 | Automated safety check: Pass | MIT |
static-web-server/static-web-server
Optimize or review performance for the Static Web Server (SWS) project — profiling, bottlenecks, resource usage, compression, and caching
rust-dd/tako
General coding-style rules to apply to every project. An agent skill from rust-dd/tako.
utensils/nxv
Find any version of any Nix package across nixpkgs git history using the nxv CLI or HTTP API.
Goldziher/spikard
Release/publish the spikard Rust core crate and CLI end-to-end.
Goldziher/ai-rulez
Rust code conventions covering edition 2024, cargo fmt/clippy, Result-based error handling, unsafe discipline, async with tokio, API-guideline naming, trait implementations, benchmarking, and…
PostHog/posthog
Debugs why session recordings aren't appearing in the local dev environment.
mikotoIO/mikoto
Contains Chakra UI v3 documentation for styling, theming, and components.
mikotoIO/mikoto
Creates a new skill or updates an existing skill to capture new knowledge.
mikotoIO/mikoto
Contains TypeScript/React patterns and conventions for the Mikoto frontend.
mikotoIO/mikoto
Rebases the current branch onto the latest main branch. An agent skill from mikotoIO/mikoto.
mikotoIO/mikoto
Creates a pull request using the GitHub CLI. An agent skill from mikotoIO/mikoto.
Works with
Categories
Contains knowledge on Mikoto usage of Rust. An agent skill from mikotoIO/mikoto. Rust is an agent skill from mikotoIO/mikoto. Contains knowledge on Mikoto usage of Rust.
Rust fits situations like: backend & APIs work in your project.
Run `npx skills add mikotoIO/mikoto --skill rust -a claude-code`. Or copy the skill folder (.claude/skills/rust in mikotoIO/mikoto) into .claude/skills/rust in your project. Claude Code loads it when a task matches its description.
Run `npx skills add mikotoIO/mikoto --skill rust -a codex`. Or copy the skill folder (.claude/skills/rust in mikotoIO/mikoto) into .agents/skills/rust in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mikotoIO/mikoto --skill rust -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rust, .gemini/skills/rust, .github/skills/rust and .opencode/skills/rust in your project.
Going by SKILL.md and its folder, Rust needs the command-line tools its instructions call (cargo, just and pnpm).
SKILL.md names 1 domain. In commands or code: docs.rs; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
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.
Rust is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Rust: Performance (static-web-server/static-web-server, 2.4k stars), Dev Rules (rust-dd/tako, 162 stars), Nxv (utensils/nxv, 136 stars) and Release Workflow (Goldziher/spikard, 123 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
mikotoIO (a GitHub organization) maintains it in mikotoIO/mikoto, which has 132 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on August 5, 2026.
Source: mikotoIO/mikoto on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.