lore-weave: Skill for Claude Code

.agents/skills/aif-best-practices/SKILL.md

aif-best-practices is a skill for Claude Code from letuhao/lore-weave. It costs 64 tokens per session (2,133 once invoked), scanned A, original, AGPL-3.0.

A set of guidelines for writing and reviewing code that is easier to understand, change, and maintain.

In plain words
What is it for?
Use it when writing, reviewing, or refactoring code, or when deciding how to name and structure parts of a project.
Why use it?
It helps avoid unclear names, tangled structure, weak error handling, missing tests, and inconsistent code reviews.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: installed under .agents/ (shared by several agents).

This is letuhao/lore-weave's own configuration. It tells Claude Code how to work on lore-weave itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything lore-weave configures →

Reuse

Borrowing it

Nothing to install: this file belongs to letuhao/lore-weave. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/letuhao/lore-weave/main/.agents/skills/aif-best-practices/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/letuhao/lore-weave

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for aif-best-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/letuhao/lore-weave/aif-best-practices/github.svg)](https://agentmods.dev/skills/letuhao/lore-weave/aif-best-practices)
Your own site
<a href="https://agentmods.dev/skills/letuhao/lore-weave/aif-best-practices"><img src="https://agentmods.dev/badge/skills/letuhao/lore-weave/aif-best-practices/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for aif-best-practices

Your own site · 80×15
<a href="https://agentmods.dev/skills/letuhao/lore-weave/aif-best-practices"><img src="https://agentmods.dev/badge/skills/letuhao/lore-weave/aif-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,133 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.02133
Opus 5 $0.00032 $0.01066
Sonnet 5 $0.00013 $0.00427
Haiku 4.5 $0.00006 $0.00213

Measured 10d ago against content hash f981c5b3fe56, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

aif-best-practices scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/aif-best-practices/SKILL.md · 283 lines

The source is not reproduced here

Licensed AGPL-3.0

The repository is licensed AGPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 283 lines · 64 tokens per session scan A f981c5b3fe56

Subscribe to this mod's changes

aif-best-practices is a skill published in the GitHub repository letuhao/lore-weave (24 stars, last pushed 2d ago), licensed AGPL-3.0. It adds 64 tokens to every session and 2,133 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

design-npc

Use when the user wants to design an enemy, NPC, boss, companion, civilian, or wave-spawned mob's behavior. Walks perception, personality knobs, intent layer, action state machine, telegraphs, defeat handling, and group emergence — outputs a state-machine GDScript stub plus the recommended node tree. Trigger on…

SummerEngine/summer-engine-agent · 101 tokens

fps-controller

Use when building an FPS, first-person movement, or a 3D character that walks, jumps, and reacts to external forces — production-quality first-person controller with WASD, mouse look, jump, coyote time, jump buffering, air control, and external-velocity handling. Trigger on "FPS", "first-person", "WASD", "character…

SummerEngine/summer-engine-agent · 89 tokens

game-feel

Use when a Summer game "feels flat", "lacks impact", "needs juice", or "needs punch", or the user asks for hit feedback, screen shake, camera shake, audio ducking, or general game feel. Walks through Summer Engine's hit-flash, trauma camera shake, and audio-ducking stack, wired so one hit fires all three. Trigger on…

SummerEngine/summer-engine-agent · 118 tokens

fire

Use when authoring a fire visual effect — animated flames built with a particle shader, GPUParticles3D, and a noise-based color ramp. Trigger on "torch", "campfire", "bonfire", "flame", "fire effect", "burning", "make this thing on fire", "candle".

SummerEngine/summer-engine-agent · 68 tokens

smoke

Use when authoring a smoke visual effect — a slow-rising column or puff of soft particles built with a noise + density falloff shader on a quad mesh, GPUParticles3D. Trigger on "smoke", "smoke trail", "puff", "chimney smoke", "smoke from a fire", "steam", "fog cloud", "explosion smoke".

SummerEngine/summer-engine-agent · 81 tokens

headless-scripting

Use when a Summer project needs an operation no MCP tool exposes, such as baking a navmesh, generating collision shapes, authoring an Animation, building a TileSet, re-importing assets after file changes, or preparing a supported local export. Runs a GDScript file against Summer Engine from the shell. Also use when a…

SummerEngine/summer-engine-agent · 92 tokens