AI-RAG-Assistant-Chatbot: Skill for Codex

.agents/skills/lumina-backend-api/SKILL.md

lumina-backend-api is a skill for Codex from hoangsonww/AI-RAG-Assistant-Chatbot. It costs 64 tokens per session (382 once invoked), scanned A, original, MIT.

A set of instructions for implementing and debugging Lumina's Express and TypeScript backend, which handles web requests, data, authentication, and service connections.

In plain words
What is it for?
Use it when changing server code for authentication, conversations, guest access, models, middleware, API routes, or connections to Gemini and Pinecone.
Why use it?
It keeps backend changes in the project's existing layers and helps prevent accidental breaks to routes, stored data, login behavior, or API formats.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

This is hoangsonww/AI-RAG-Assistant-Chatbot's own configuration. It tells Codex how to work on AI-RAG-Assistant-Chatbot 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 AI-RAG-Assistant-Chatbot configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hoangsonww/AI-RAG-Assistant-Chatbot. 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/hoangsonww/AI-RAG-Assistant-Chatbot/master/.agents/skills/lumina-backend-api/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/hoangsonww/AI-RAG-Assistant-Chatbot

Made for: 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 lumina-backend-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/hoangsonww/ai-rag-assistant-chatbot/lumina-backend-api/github.svg)](https://agentmods.dev/skills/hoangsonww/ai-rag-assistant-chatbot/lumina-backend-api)
Your own site
<a href="https://agentmods.dev/skills/hoangsonww/ai-rag-assistant-chatbot/lumina-backend-api"><img src="https://agentmods.dev/badge/skills/hoangsonww/ai-rag-assistant-chatbot/lumina-backend-api/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 lumina-backend-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/hoangsonww/ai-rag-assistant-chatbot/lumina-backend-api"><img src="https://agentmods.dev/badge/skills/hoangsonww/ai-rag-assistant-chatbot/lumina-backend-api.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 382 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 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.00064 $0.00382
Opus 5 $0.00032 $0.00191
Sonnet 5 $0.00013 $0.00076
Haiku 4.5 $0.00006 $0.00038

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

Security

Grade A, and why

lumina-backend-api 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 11d 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/lumina-backend-api/SKILL.md · 35 lines

What it actually says

Lumina Backend Api

Overview

Use this skill for HTTP and data-layer work in server/. Follow the existing route, middleware, model, and service split instead of collapsing logic into a single file.

Load The Right Reference

  • Read references/file-map.md to locate the route, service, or model that owns a behavior.
  • Read references/validation.md before finishing when request contracts, persistence logic, or API docs changed.

Change Backend Behavior In The Existing Layers

  • Start with the route that exposes the behavior, then trace into services, models, middleware, and utility functions.
  • Keep authentication logic in auth routes or middleware rather than scattering token checks.
  • Keep conversation and guest behavior separate when the repository already separates those flows.
  • Keep request and response structures stable unless the task explicitly changes the API contract.

Handle Contract Changes Explicitly

  • Update openapi.yaml when endpoint behavior, payload fields, or response shapes change.
  • If the work is really about knowledge ingestion, Pinecone source lifecycle, or citation formatting, switch to lumina-rag-knowledge.
  • If frontend callers depend on the changed contract, update the client in the same task when feasible.

Finish With Real Validation

  • Run npm run build in server/ after meaningful backend changes.
  • Treat npm test in server/ as a placeholder, not as evidence of correctness.
  • If live services or secrets were unavailable, state that clearly and separate compile-time validation from runtime confidence.
Files

What ships with it

3 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. 11d ago First seen · 35 lines · 64 tokens per session scan A 71bc81c591c4

Subscribe to this mod's changes

lumina-backend-api is a skill published in the GitHub repository hoangsonww/AI-RAG-Assistant-Chatbot (47 stars, last pushed 3d ago), licensed MIT. It adds 64 tokens to every session and 382 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

knowject-api-to-types

A Knowject skill that generates TypeScript types from an OpenAPI document, which describes an API's available requests and data shapes, and connects them to a typed client.

lynxlangya/knowject · 213 tokens

client-setup

Create a vanilla tRPC client with createTRPCClient (), configure link chain with httpBatchLink/httpLink, dynamic headers for auth, transformer on links (not client constructor). Infer types with inferRouterInputs and inferRouterOutputs. AbortController signal support. TRPCClientError typing.

trpc/trpc · 63 tokens

adapter-express

Mount tRPC as Express middleware with createExpressMiddleware() from @trpc/server/adapters/express. Access Express req/res in createContext via CreateExpressContextOptions. Mount at a path prefix like app.use('/trpc', ...). Avoid global express.json() conflicting with tRPC body parsing for FormData.

trpc/trpc · 67 tokens

trpc-router

Entry point for all tRPC skills. Decision tree routing by task: initTRPC.create(), t.router(), t.procedure, createTRPCClient, adapters, subscriptions, React Query, Next.js, links, middleware, validators, error handling, caching, FormData.

trpc/trpc · 59 tokens

trpc

Skill "trpc" from ashish7802/awesome-api-skills, covering trpc skill, ecosystem graph, quick start, production patterns and input validation.

ashish7802/awesome-api-skills · 0 tokens

darto-add-route

Add or modify HTTP endpoints in a Darto (Dart) web app — verbs, path/query params, request-body reading, route groups, and Context response helpers. Use when building or changing API routes in a project that depends on the darto package (import 'package:darto/darto.dart'). Not for Express/Node — Darto handlers take a…

evandersondev/darto · 90 tokens