lua-patterns

lua-patterns is a skill for Claude Code from Nmor/the-claude-council. It costs 127 tokens per session (8,531 once invoked), scanned A, original, no licence file.

A guide to writing Lua 5.x code with local variables, reusable modules, protected calls, safe code loading, metatables, and coroutines. It also covers patterns for embedding Lua in other applications.

In plain words
What is it for?
It is for structuring Lua modules, handling errors, loading code safely, building object-like tables, using coroutines, and integrating Lua into host applications.
Why use it?
It helps prevent global-state bugs and unsafe or fragile behavior in Lua programs.

Skill for Claude Code

Written for Claude Code: paths in frontmatter.

Good fit It is for structuring Lua modules, handling errors, loading code safely, building object-like tables, using coroutines, and integrating Lua into host applications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nmor/the-claude-council/lua-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Nmor/the-claude-council --skill lua-patterns
Clone the repo
git clone --depth 1 https://github.com/Nmor/the-claude-council

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 lua-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/nmor/the-claude-council/lua-patterns/github.svg)](https://agentmods.dev/skills/nmor/the-claude-council/lua-patterns)
Your own site
<a href="https://agentmods.dev/skills/nmor/the-claude-council/lua-patterns"><img src="https://agentmods.dev/badge/skills/nmor/the-claude-council/lua-patterns/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 lua-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/nmor/the-claude-council/lua-patterns"><img src="https://agentmods.dev/badge/skills/nmor/the-claude-council/lua-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,531 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00127 $0.08531
Opus 5 $0.00063 $0.04265
Sonnet 5 $0.00025 $0.01706
Haiku 4.5 $0.00013 $0.00853

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

Security

Grade A, and why

lua-patterns scanned grade A with 1 finding 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 8d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sSL https://github.com/JohnnyMorganz/StyLua/releases/latest/download/stylua-linux-x86_64.zip \
skills/lua-patterns/SKILL.md · 1,283 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

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. 8d ago First seen · 1,283 lines · 127 tokens per session scan A 48f02130084f

Subscribe to this mod's changes

lua-patterns is a skill published in the GitHub repository Nmor/the-claude-council (9 stars, last pushed 4d ago), with no licence file. It adds 127 tokens to every session and 8,531 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

code-quality

Agents should invoke this skill for code reviews, linting/formatting setup, maintainability checks, complexity concerns, warning cleanup, coding standards, or quality gates in Rust, TypeScript, Python, shell, and mixed repos.

waybarrios/opencode-power-pack · 49 tokens

coding-standards

Universal coding standards - naming, formatting, error handling, immutability, SOLID principles.

vibeeval/vibecosystem · 23 tokens

ring:adopting-lib-commons-huma-wrapper

Adopting the lib-commons/v5 shared Huma (OAS 3.1) OpenAPI wrapper + RFC 9457 problem model (commons/net/http/{openapi,problem}) in a Lerian Go service: wire openapi.New/ServeSpec + problem.Install (central >=500 scrub) on BOTH runtime and spec-gen paths, the per-rail problem.MapError flex seam, and rename-only spec…

LerianStudio/ring · 142 tokens

ring:applying-licenses

Applying or switching a repository's license (Apache 2.0, Elastic License v2, or Proprietary): rewrites the LICENSE file, updates Go/TS source headers, sets SPDX identifiers, and validates consistency after user confirmation. Use when asked to set, apply, or switch a license, or when scaffolding a service with no…

LerianStudio/ring · 94 tokens

ring:auditing-dependency-security

Auditing a dependency for supply-chain risk before install (pip/npm/go/cargo): checks typosquatting, maintainer/age risk, vulnerability DBs (OSV, GHSA, Socket), and lockfile hash pinning, then emits a risk score and approve/conditional/escalate/block decision. Use when adding or updating a dependency, reviewing a…

LerianStudio/ring · 102 tokens

java-rules

Java coding rules: style, patterns, security, testing. Triggers: .java, pom.xml, build.gradle, Spring, Spring Boot, JPA, Hibernate, JUnit, Maven, Gradle.

softspark/ai-toolkit · 46 tokens