Team rules

From redis/agent-filesystem · View interactive version

Team rules is an AI agent skill from the GitHub repository redis/agent-filesystem. Apply the team's shared coding rules before writing, modifying, or reviewing code. Trigger when the user asks to add a feature, refactor, fix a bug, write tests, or review a change. Reads rules live from the team-rules MCP workspace at /rules/*.md.

How to use this skill

Skill file

Team Coding Rules

Your team keeps its canonical coding rules in a shared Agent Filesystem workspace

exposed as the team-rules MCP server. The workspace is read-only — nobody's

agent can write to it. It's the single source of truth for how this team writes

code.

Before writing or editing code

  1. Call mcp__team-rules__file_list with path: "/rules" and depth: 2.
  2. For the task at hand, read every rule file that plausibly applies. Examples:
  1. Cite applicable rules in your plan by path (e.g. "per /rules/security.md…").
  2. Apply the rules to the code you produce.

Rules of engagement

file_insert, or file_delete_lines against team-rules — they will fail.

ask before deciding.

Quick reference

| Situation | Rule file to read |

|-----------|------------------|

| Any code edit | /rules/style.md |

| New file / function / type | /rules/naming.md |

| Auth, input handling, secrets, PII | /rules/security.md |

| Adding or modifying tests | /rules/testing.md |

| New module or cross-boundary work | /rules/architecture.md |

| Commit messages, PR description | /rules/git.md |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.