awesome-ai-rules
🤖 Curated AI coding assistant rules for Cursor, Claude Code, Copilot, Windsurf, Codex CLI & Gemini CLI. Copy-paste configs for TypeScript, React, Next.js & Python.
Install / Use
npx skills add Lay4U/awesome-ai-rulesInstalls into whichever agent you are using.
.windsurfrules
Windsurf/Codeium rules
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of awesome-ai-rules
awesome-ai-rules scores 53/100 on our quality scale, 4217th of 4,595 Development & Engineering skills we index.
Its .windsurfrules is 1.9 KB long, well organised into 9 sections and no code examples: moderately detailed.
It has no GitHub stars yet, so there is no community track record; judge it on its content.
Maintenance, license and trust
- We could not determine when the repository was last updated.
- Our last check on 2026-10-19 found the source still online.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 68/100, with 3 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
awesome-ai-rules compared with similar skills
All 4 of these similar skills score higher than awesome-ai-rules; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| awesome-ai-rules (this skill)by Lay4U | 53 | 0 | — | .windsurfrules |
| taste-skillby Leonxlnx | 100 | 101.7k | 3d ago | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 101.4k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 77.7k | today | CLAUDE.md |
| ai-job-searchby ai-job-search-dev | 100 | 64.2k | 3d ago | CLAUDE.md |
Frequently asked questions
- How do I install awesome-ai-rules?
- Run
npx skills add Lay4U/awesome-ai-rules. The install tabs above show the steps for each supported agent. - Which AI agents does awesome-ai-rules work with?
- It is written for Windsurf, as a .windsurfrules file. Other agents that read the same format can often use it too.
- Is awesome-ai-rules safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It declares no license and scores 68/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is awesome-ai-rules still maintained?
- We could not determine when the repository was last updated.
Skill content
View source on GitHubWindsurf Rules: Rust
Baseline
- Produce Rust that is safe by default and simple to audit.
- Prefer clear data flow over clever abstractions.
Borrowing and Lifetimes
- Start with borrowed references before choosing ownership transfer.
- Limit mutable access windows to reduce borrow conflicts.
- Make lifetimes explicit when signatures are ambiguous.
- Do not patch borrow errors with broad cloning.
Error Strategy
- Use
Result<T, E>for all recoverable failures. - Use
thiserrorfor reusable library error enums. - Use
anyhowfor app-level glue code and command entrypoints. - Add contextual details at I/O, parsing, and network boundaries.
- Disallow
unwrap()in production code. - Prefer
?; useexpect()only with clear invariant text.
Matching and Control Flow
- Keep pattern matching exhaustive and intentional.
- Avoid
_arms on domain enums unless future variants are truly irrelevant. - Use
let ... elsefor early exits and reduced nesting.
Workspace and Quality Gates
- Structure multi-crate projects as Cargo workspaces.
- Keep shared crates framework-agnostic.
- Format with
cargo fmt --all. - Lint with
cargo clippy --all-targets --all-features -D warnings. - Treat lint suppressions as exceptions requiring comments.
Unsafe Policy
- Use
unsafeonly when benchmarked or API-constrained. - Encapsulate unsafe internals in small modules.
- Add safety comments that state required invariants.
- Validate unsafe assumptions with targeted tests.
Testing and Docs
- Run
cargo test --workspacebefore finishing. - Put integration tests in
tests/. - Keep unit tests close to the module they verify.
- Provide rustdoc on public APIs with short examples.
- Ensure doc examples are accurate and compilable.
Implementation Style
- Prefer iterator chains to manual indexing loops.
- Keep functions small, typed, and single-purpose.
- Favor explicit domain enums over stringly typed status values.
Related Skills
taste-skill
101.7kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
Agent-Reach
101.4kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
77.7kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ai-job-search
64.2kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
