project-conventions

project-conventions is a skill for Claude Code, Codex from choi138/toki. It costs 53 tokens per session (381 once invoked), scanned A, original, MIT.

A set of project-specific rules for editing Toki, a macOS app written in Swift. It tells the coding agent which guidance and checks to read before changing code or configuration.

In plain words
What is it for?
Use it when changing Swift source or tests, SwiftUI screens, app startup and menu-bar behavior, usage or security-audit logic, or XcodeGen, SwiftFormat, and SwiftLint settings.
Why use it?
It reduces the risk of breaking the app’s structure, style, security handling, or tests by making the project’s conventions part of the editing process.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/choi138/toki/project-conventions
Any agent
npx skills add choi138/toki --skill project-conventions
Clone the repo
git clone --depth 1 https://github.com/choi138/toki

Made for: Claude Code, Codex.

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 project-conventions

README.md
[![agentmods](https://agentmods.dev/badge/skills/choi138/toki/project-conventions.svg)](https://agentmods.dev/skills/choi138/toki/project-conventions)
Your own site
<a href="https://agentmods.dev/skills/choi138/toki/project-conventions"><img src="https://agentmods.dev/badge/skills/choi138/toki/project-conventions.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 381 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original 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.00053 $0.00381
Opus 5 $0.00026 $0.00191
Sonnet 5 $0.00011 $0.00076
Haiku 4.5 $0.00005 $0.00038

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

Security

Grade A, and why

project-conventions 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 5d 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/project-conventions/SKILL.md · 53 lines

What it actually says

Project Conventions

Review these rules before editing Toki code or project configuration.

When To Activate

  • Before editing menubar/Toki/**/*.swift
  • Before editing menubar/TokiTests/**/*.swift
  • Before changing menubar/project.yml, menubar/Toki.xcodeproj, .swiftformat, or .swiftlint.yml
  • When working on usage readers, pricing, aggregation, security audit scanning, SwiftUI feature screens, app launch/menu bar behavior, or tests

Read First

Open the shared conventions entry point first:

Read: .agents/skills/project-conventions/conventions.md

Then load only the reference files that match the current task.

Reference Map

  • references/architecture.md: app directory ownership, data flow, reader and security audit boundaries, SwiftUI feature boundaries.
  • references/swift-style.md: Swift style, SwiftUI guidance, sensitive local data handling, formatter/linter expectations.
  • references/testing-verification.md: focused and full validation commands.

Workflow

  1. Read conventions.md.
  2. Read the relevant task-specific reference.
  3. Inspect the existing pattern in the nearest files.
  4. Implement with narrowly scoped changes.
  5. Run focused checks or explain why they could not be run.

Use AGENTS.md for repo-level policy and .agents/conventions/git-workflow.md for commit and PR workflow rules.

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 53 lines · 53 tokens per session scan A 8e698d36c21b

Subscribe to this mod's changes

project-conventions is a skill published in the GitHub repository choi138/toki (10 stars, last pushed today), licensed MIT. It adds 53 tokens to every session and 381 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-31.