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.
npx agentmods add rules/usekaneo/kaneo/frontend-webgit clone --depth 1 https://github.com/usekaneo/kaneoWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.01738 |
| Opus 5 | $0.00000 | $0.00869 |
| Sonnet 5 | $0.00000 | $0.00348 |
| Haiku 4.5 | $0.00000 | $0.00174 |
Grade A, and why
frontend-web 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 302 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Frontend Web Guidelines
The Kaneo web application is built with React, TanStack Router, TanStack Query, and Vite. This document outlines conventions and patterns for frontend development.
Framework: React
Component Structure
Components are organized in apps/web/src/components/:
// apps/web/src/components/task/task-card.tsx
import { Task } from "@/types/task";
type TaskCardProps = {
task: Task;
onUpdate?: (task: Task) => void;
};
export function TaskCard({ task, onUpdate }: TaskCardProps) {
return (
<div className="p-4 border rounded-lg">
<h3>{task.title}</h3>
{/* ... */}
</div>
);
}
Best Practices
- TypeScript: Always type props and component return types
- Component naming: Use PascalCase for component files and exports
- Props destructuring: Destructure props in function parameters
- Conditional rendering: Use ternary or logical operators clearly
// Good: Typed component with clear structure
type ButtonProps = {
variant?: "primary" | "secondary";
children: React.ReactNode;
onClick?: () => void;
};
export function Button({ variant = "primary", children, onClick }: ButtonProps) {
return (
<button
className={cn("px-4 py-2", variant === "primary" && "bg-blue-500")}
onClick={onClick}
>
{children}
</button>
);
}
// Bad: Untyped, unclear structure
export function Button(props: any) {
return <button onClick={props.onClick}>{props.children}</button>;
}
Routing: TanStack Router
File-Based Routing
Routes are defined using file-based routing in apps/web/src/routes/:
// apps/web/src/routes/tasks/$taskId.tsx
import { createFileRoute } from "@tanstack/react-router";
import { useTask } from "@/hooks/queries/task/use-task";
export const Route = createFileRoute("/tasks/$taskId")({
component: TaskPage,
});
function TaskPage() {
const { taskId } = Route.useParams();
const { data: task } = useTask(taskId);
if (!task) return <div>Loading...</div>;
return <div>{task.title}</div>;
}
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.
- yesterday First seen · 302 lines · 0 tokens per session scan A 9a9c157e80a2
frontend-web is a cursor rule published in the GitHub repository usekaneo/kaneo (8,786 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,738 tokens. 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.
Other cursor rules, from other repositories
no-co-author-in-commits
Do not add or keep Co-authored-by trailers in commit messages.
no-mvn-compile
Do not run mvn compile; rely on IDE lint errors.
git-and-monorepo
Commit message convention and pnpm/Nx monorepo rules.
upgrade-tests
// ✅ CORRECT: Upgrade package pattern await using ctx = testReactResource(appRouter, { server: { // server configuration }, client(opts) { return { links: [ httpLink({ url: opts.httpUrl, // client configuration }), ], }; }, }).
clawsweeper
Triage and process the Slate v2 issue ledger with OpenClaw-style sweep discipline: archive-first discovery, duplicate proof, small-fix gates, exact claim rules, maintainer-safe issue output, and gitcrawl API refreshes.
slate-ar-status
Read-only status shortcut for Slate v2 Autoresearch. Shows current session state, dashboard URL, next recommended action, blockers, and latest metric evidence without running packets or editing files.