storyden: Instructions file for Codex

AGENTS.md

storyden AGENTS.md is an instructions file for Codex, OpenCode from Southclaws/storyden. It costs 1,658 tokens per session, scanned A, original, MPL-2.0.

A project guide that tells a coding agent where to find documentation, how the application is organised, and how its Go backend is structured.

In plain words
What is it for?
Finding project and architecture notes, locating backend layers and API definitions, and checking the standard commands for setup and validation.
Why use it?
It reduces the time spent searching through an unfamiliar codebase and helps the agent open only the documents relevant to the task.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

This is Southclaws/storyden's own configuration. It tells Codex and OpenCode how to work on storyden 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 storyden configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Southclaws/storyden. 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/Southclaws/storyden/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Southclaws/storyden

Made for: Codex, OpenCode.

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 storyden AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/southclaws/storyden/agents-md.svg)](https://agentmods.dev/instructions/southclaws/storyden/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/southclaws/storyden/agents-md"><img src="https://agentmods.dev/badge/instructions/southclaws/storyden/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,658 This file is loaded in full into every session.
When invoked 1,658 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.01658 $0.01658
Opus 5 $0.00829 $0.00829
Sonnet 5 $0.00332 $0.00332
Haiku 4.5 $0.00166 $0.00166

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

Security

Grade A, and why

storyden AGENTS.md 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 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.

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.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

Purpose

This file is the generic entrypoint for finding project documentation relevant to the current task. Use this as an index, then open only the docs needed for the work at hand.

Quick Orientation

  • Product and scope:
    • README.md for product overview and goals.
    • web/ is the product application.
    • home/ is the website/docs app (only use when task targets docs/marketing site).
  • Backend high-level direction (Go):
    • cmd/backend/main.go is the backend runtime entrypoint.
    • app/resources/**, app/services/**, app/transports/** are the core 3 layers (data, business logic, external interfaces).
    • internal/** contains infrastructure and platform integration code.
    • api/openapi.yaml and api/rpc/** are contract/spec roots for generated transport code.
    • internal/ent/schema/** is the DB schema source of truth.
  • Local setup and workflow:
    • Taskfile.yml for canonical project task commands.
  • Architecture and backend:
    • CLAUDE.md for high-level architecture map, layering rules, and command guardrails.
    • docs/architecture/ for deeper architecture notes when needed.
    • internal/config/config.yaml for runtime configuration surface.
  • Frontend and design system (web):
    • Read web/AGENTS.md before editing frontend code. Its Storybook and component-reuse rules are the required frontend entrypoint.
    • web/panda.config.ts for Panda setup, tokens, recipes, patterns, and conditions.
    • web/src/theme/ and web/src/app/global.css for semantic tokens and global styling rules.
    • web/src/app/(dashboard)/**/README.md for route/domain intent.
  • API and SDK:
    • api/openapi.yaml as API contract source of truth.
    • api/rpc/README.md and sdk/**/README.md for transport/SDK usage.

Backend Task Routing (Go)

Storyden backend is a Go application using Uber Fx dependency injection and a 3-layer app structure.

  • Runtime composition and startup:
    • cmd/backend/main.go wires config, infrastructure, resources, services, and transports.
    • app/resources/resources.go, app/services/services.go, and app/transports/transports.go define dependency module composition.
  • Layer responsibilities:
    • app/resources/**: persistence/data access and query/write repositories.
    • app/services/**: business logic and orchestration.
    • app/transports/**: external interfaces (HTTP OpenAPI, RPC, MCP).
    • internal/**: infrastructure and platform concerns (db, cache, mail, pubsub, vector, config, etc.).
  • If your task is API endpoint behavior:
    • Start in app/transports/http/bindings/** for handlers/bindings.
    • Check generated types/server in app/transports/http/openapi/**.
    • Update API contract in api/openapi.yaml (and related api/common/** schemas) when request/response surface changes.
  • If your task is domain/business logic:
    • Implement changes in app/services/<domain>/**.
    • Use app/resources/<domain>/** for data access changes needed by that logic.
  • If your task is database/schema/persistence:
    • Source of truth is internal/ent/schema/**.
    • Regenerated artifacts are under internal/ent/**.
  • If your task is infra/config wiring:
    • internal/infrastructure/** for adapters and integrations.
    • internal/config/config.yaml for environment-backed runtime configuration.
  • If your task is plugins/RPC:
    • RPC schemas: api/rpc/** and api/plugin.yaml.
    • Transport/runtime implementation: app/transports/rpc/**, app/services/plugin/**, app/resources/plugin/**.
  • If your task is MCP tools:
    • app/transports/mcp/** and app/transports/mcp/tools/**.

Read the full file on GitHub · 114 lines

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 · 114 lines · 1,658 tokens per session scan A c9350e96016a

Subscribe to this mod's changes

storyden AGENTS.md is an instructions file published in the GitHub repository Southclaws/storyden (335 stars, last pushed yesterday), licensed MPL-2.0. It adds 1,658 tokens to every session, about $0.0083 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 instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens