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.
git clone --depth 1 https://github.com/SkeneTechnologies/skene-cookbookWrote 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.
[](https://agentmods.dev/rules/skenetechnologies/skene-cookbook/instructions)<a href="https://agentmods.dev/rules/skenetechnologies/skene-cookbook/instructions"><img src="https://agentmods.dev/badge/rules/skenetechnologies/skene-cookbook/instructions.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02789 |
| Opus 5 | $0.00000 | $0.01394 |
| Sonnet 5 | $0.00000 | $0.00558 |
| Haiku 4.5 | $0.00000 | $0.00279 |
Grade A, and why
instructions 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.
This is a copy
100% identical to actix-web — 1 line differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 347 lines — stays where its author put it; the contents beside it link to each section on GitHub.
actix-web Best Practices
Actix-web 4 is the premier choice for high-performance Rust web services. Adhere to these guidelines for clean, scalable, and production-ready code. Always run cargo fmt and cargo clippy before committing.
1. Code Organization & Structure
Organize your codebase by feature or domain, not by generic file types. This improves discoverability and maintainability.
✅ GOOD: Modular by Feature
// src/main.rs
mod db; // Database access logic
mod routes; // HTTP route handlers, grouped by resource
mod services; // Business logic layer
mod models; // Data structures (e.g., database models, DTOs)
use actix_web::{web, App, HttpServer};
#[actix_web::main]
async fn main() -> std::io::Result<()> {
// Initialize logging early
env_logger::init_from_env(env_logger::Env::default().default_filter_or("info"));
let db_pool = db::init_pool().await
.expect("Failed to create DB pool");
HttpServer::new(move || {
App::new()
.app_data(web::Data::new(db_pool.clone())) // Inject shared DB pool
.service(
web::scope("/api/v1") // API versioning and grouping
.configure(routes::users::config) // User-related routes
.configure(routes::products::config) // Product-related routes
)
// Add global middleware here (e.g., Logger, Compress)
.wrap(actix_web::middleware::Logger::default())
})
.bind(("127.0.0.1", 8080))?
.run()
.await
}
// src/routes/users.rs
use actix_web::{web, HttpResponse, Responder};
use crate::db::PgPool; // Assuming PgPool is public in db module
use crate::services::users as user_service; // Business logic layer
pub fn config(cfg: &mut web::ServiceConfig) {
cfg.service(web::resource("/users").route(web::get().to(get_all_users)));
cfg.service(web::resource("/users/{id}").route(web::get().to(get_user_by_id)));
}
async fn get_all_users(pool: web::Data<PgPool>) -> impl Responder {
match user_service::find_all_users(&pool).await {
Ok(users) => HttpResponse::Ok().json(users),
Err(e) => {
log::error!("Failed to fetch users: {:?}", e);
HttpResponse::InternalServerError().finish()
},
}
}
// src/services/users.rs
use crate::db::PgPool;
use crate::models::User; // Assuming User model
pub async fn find_all_users(pool: &PgPool) -> Result<Vec<User>, sqlx::Error> {
sqlx::query_as::<_, User>("SELECT id, name, email FROM users")
.fetch_all(pool)
.await
}
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.
- 8d ago First seen · 347 lines · 2,789 tokens per session scan A 02773db84dcb
instructions is a cursor rule published in the GitHub repository SkeneTechnologies/skene-cookbook (53 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,789 tokens. A static security scan graded it A with 0 findings. It is 100% identical to actix-web, differing in 1 line, and is treated as a copy.
Other cursor rules, from other repositories
fastapi
Apply when building FastAPI endpoints, Pydantic models, or async APIs. Covers routing, dependency injection, error handling, testing, and OpenAPI hygiene.
go-backend-scalability-cursorrules-prompt-file
Cursor rules for Go development with backend scalability.
python
Python best practices and patterns for modern software development with Flask and SQLite.
go-servemux-rest-api-cursorrules-prompt-file
Cursor rules for Go development with ServeMux REST API integration.
actix-web
Definitive guidelines for building high-performance, maintainable, and secure web applications with actix-web 4, focusing on modern Rust best practices.
skill-nestjs-api
Padrões DARE para APIs REST em NestJS + TypeScript + Prisma + Swagger. Modules, Controllers, Services, DTOs com class-validator, Guards JWT, throttler, exceções globais, Jest + Supertest, OpenAPI auto-gerado.