summerrs-admin
Skill11 starsChanged 6 months agoMITView on GitHub
Use when implementing or modifying code in the Summerrs Admin workspace and repo conventions determine crate placement, route/service layering, SeaORM entity organization, auth or Socket.IO integration, plugin wiring, or MCP generator usage.
In this repositoryOne other file it gives its agents.
- rigSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 47
Keep routers thin and services thick.
- Very specific: line 56
Do not rely on database foreign keys.
- Distinctive: line 58
Prefer MCP business tools for menus and dictionaries instead of hand-written SQL.
- Very specific: line 63
Prefer summer_common::response::Json<T> for route responses.
- Very specific: line 64
Put #[log] above the route macro.
- Distinctive: line 65
Use services for transactions, aggregation, and policy logic.
- Very specific: line 66
Use query DTOs that can be passed directly into .filter(query) where possible.
- Very specific: line 67
If a plugin depends on another plugin's components, declare dependencies().
- Distinctive: line 68
If MCP generators emit code into legacy paths, move the generated output into the current repo layout before integrating it.
- Very specific: line 105
Before finishing, run build-tools/pre-commit or the relevant formatter/check commands for the crates you touched.
- Distinctive: line 107
If you changed routes, services, auth, or Socket.IO behavior, do at least one targeted runtime sanity check in addition to compile/test …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Summerrs Admin
This skill captures repository-specific engineering patterns for the Summerrs Admin workspace. Use it when the answer depends on how this repo is structured, not when the task is generic Rust work.
When To Use
- You need to decide whether code belongs in
crates/app,crates/summer-system,crates/summer-plugins,crates/summer-mcp,crates/summer-rig, orcrates/summer-ai/*. - You are adding or modifying routes, services, DTOs, VOs, plugins, Socket.IO handlers, or SeaORM entities.
- You are generating code with MCP and need to move or adapt the output to the repo's actual layout.
- You are touching auth flows, online users, session revocation, or realtime behavior.
When Not To Use
- The task is generic Rust, Cargo, SQL, or Git work and does not depend on this workspace's conventions.
- You only need a single crate's local implementation details and the relevant files are already open.
Task Routing
- Route/service/DTO/VO work: read
references/route-service.md - Plugin, component, config, and app wiring: read
references/plugin-component.md - SeaORM entities, DTO/VO contracts, and schema sync: read
references/data-model.md - MCP generators and codegen landing zones: read
references/mcp-generator.md - Auth, online users, kick-out flows, and Socket.IO: read
references/auth-realtime.md
Hard Constraints
- Keep routers thin and services thick.
crates/app/src/main.rsis the assembly root. Do not treat the entirecrates/appcrate as a business-logic crate.- System business code belongs in
crates/summer-system. - System DTO/VO/entity code belongs in
crates/summer-system/model. - AI model contracts live under
crates/summer-ai/model; AI runtime and relay behavior live undercrates/summer-ai/hub. - Shared infrastructure plugins belong in
crates/summer-plugins. - Stable application code should depend on
src/entity. - Do not rely on database foreign keys. Use SeaORM relations with
skip_fkwhere appropriate. - Prefer MCP business tools for menus and dictionaries instead of hand-written SQL.
Preferred Patterns
- Prefer
summer_common::response::Json<T>for route responses. - Put
#[log]above the route macro. - Use services for transactions, aggregation, and policy logic.
- Use query DTOs that can be passed directly into
.filter(query)where possible. - If a plugin depends on another plugin's components, declare
dependencies(). - If MCP generators emit code into legacy paths, move the generated output into the current repo layout before integrating it.
Key Crates And Anchor Files
- App assembly root:
crates/app/src/main.rs - System route examples:
crates/summer-system/src/router/sys_user.rs,crates/summer-system/src/router/auth.rs - System service examples:
crates/summer-system/src/service/sys_user_service.rs,crates/summer-system/src/service/online_service.rs - System Socket.IO entry points:
crates/summer-system/src/plugins/socket_gateway.rs,crates/summer-system/src/socketio/connection/*,crates/summer-system/src/socketio/core/* - System model layer:
crates/summer-system/model/src/entity/*,crates/summer-system/model/src/dto/*,crates/summer-system/model/src/vo/*,crates/summer-system/model/src/views/* - Shared schema sync plugin:
crates/summer-plugins/src/entity_schema_sync.rs - MCP entry points:
crates/summer-mcp/src/plugin.rs,crates/summer-mcp/src/runtime.rs,crates/summer-mcp/src/server.rs,crates/summer-mcp/src/table_tools/router.rs,crates/summer-mcp/src/tools/* - AI runtime:
crates/summer-ai/hub/src/plugin.rs,crates/summer-ai/hub/src/router/*,crates/summer-ai/hub/src/service/* - Rig plugin:
crates/summer-rig/src/plugin.rs
Verification
- Before finishing, run
build-tools/pre-commitor the relevant formatter/check commands for the crates you touched. - If you changed routes, services, auth, or Socket.IO behavior, do at least one targeted runtime sanity check in addition to compile/test checks.
Local References
The references/*.md files in this skill directory contain the repo-specific
details. Use them as the detailed guidance layer; keep this top-level skill short
and decision-oriented.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

