SeniorMode
English · Türkçe · Deutsch · Español · Français · 日本語 · Português (Brasil) · 简体中文 · العربية · Azərbaycanca · فارسی · हिन्दी · Bahasa Indonesia · Italiano · Қазақша · 한국어 · Кыргызча · Русский · ไทย · Türkmençe · Татарча · ئۇيغۇرچە · Українська · Oʻzbekcha · Tiếng Việt · 繁體中文 · + Add your language
Your AI can code. Now make it engineer.
Real-world engineering knowledge for AI coding agents.
Install · Usage · Examples · Skill Directory · FAQ · Releases · Contributing
Made in Türkiye 🇹🇷
Working code is not enough. SeniorMode gives your coding agent a library of engineering decisions and a workflow for applying them. It helps the agent spot risks, choose an approach that fits your project, and test the result.
Start with the result you want. SeniorMode helps your agent turn an ordinary request into decisions that fit your project, protect what matters, and can be verified. The knowledge stays available locally for you and your agent to inspect.
107 Engineering Decisions · 13 Categories · 16 Engineering standards · 5 Supported agents
Why does shuffle feel broken?
Add shuffle to my music app.
| Method | Artist order | Adjacent repeats |
|---|---|---|
| Random sort | Eminem → Eminem → The Weeknd → The Weeknd → Drake → Drake | 3 |
| Fisher–Yates | The Weeknd → Eminem → Drake → Drake → The Weeknd → Eminem | 1 |
| Artist-aware | The Weeknd → Eminem → Drake → The Weeknd → Eminem → Drake | 0 |
Three shuffles of the same six songs show why random playback can still feel repetitive. Every song stays in the queue, and tracks by the same artist are spaced out when the playlist allows. Music shuffle
Install
Install with AI
Give this prompt to your coding agent, or choose your agent below for the terminal command.
Install SeniorMode from https://github.com/EnesKeremAYDIN/SeniorMode. Follow the installation instructions for my coding agent and current project. Check the target directory before writing, preserve my settings and any existing skill edits, and verify that the skill is available. Ask before overwriting an existing copy. Leave MCP setup for a separate request.
Supported agents
Install SeniorMode in any of these five agents. You can also use MCP from a compatible client. MCP
From your project root, run the command for your agent. The Vercel installer requires Node.js 22.20+.
Check the target folder and review any local edits before running an installer.
Vercel skills and the SeniorMode CLI each track the copies they install. Update or remove a copy with the tool that installed it. For manual copies, review local edits before replacing or removing the folder.
Codex · Claude Code · Cursor · Gemini CLI · OpenCode
Codex
npx skills@1.9.0 add EnesKeremAYDIN/SeniorMode --skill seniormode --agent codex --copy -y
Claude Code
npx skills@1.9.0 add EnesKeremAYDIN/SeniorMode --skill seniormode --agent claude-code --copy -y
Cursor
npx skills@1.9.0 add EnesKeremAYDIN/SeniorMode --skill seniormode --agent cursor --copy -y
Gemini CLI
npx skills@1.9.0 add EnesKeremAYDIN/SeniorMode --skill seniormode --agent gemini-cli --copy -y
OpenCode
npx skills@1.9.0 add EnesKeremAYDIN/SeniorMode --skill seniormode --agent opencode --copy -y
Restart the agent session and ask for the change in your own words. Mention SeniorMode if the host does not select the skill. In Codex, $seniormode is the explicit skill reference. Bundled records work without an MCP server.
Project and global scope
The recommended installer uses project scope by default. Its optional global flag changes the home-level location. The managed SeniorMode CLI writes into an existing project only. Append seniormode to each skills path below. Tilde means your home directory. skills 1.9.0
| Agent | Manual / SeniorMode project path | Vercel skills project path | Vercel skills global path |
|---|---|---|---|
| Codex | .agents/skills |
.agents/skills |
~/.agents/skills |
| Claude Code | .claude/skills |
.claude/skills |
~/.claude/skills or CLAUDE_CONFIG_DIR/skills |
| Cursor | .agents/skills |
.agents/skills |
~/.agents/skills |
| Gemini CLI | .gemini/skills |
.agents/skills |
~/.agents/skills |
| OpenCode | .agents/skills |
.agents/skills |
~/.agents/skills |
Vercel skills records project installations in skills-lock.json and global installations in .skill-lock.json. Use --project for project updates and --global for global operations. The installer can change the selected skill folder and lock file.
npx skills@1.9.0 list --agent codex
npx skills@1.9.0 check
npx skills@1.9.0 update seniormode --project
npx skills@1.9.0 remove seniormode --agent codex
npx skills@1.9.0 add EnesKeremAYDIN/SeniorMode --skill seniormode --agent codex --global --copy -y
Manual installation
Copy the entire skills/seniormode directory from a trusted checkout into the host’s skills directory. Retain SKILL.md, references, and licenses together. To refresh or remove your manual copy, replace or delete only that folder after reviewing any local edits.
CLI-managed installation
With dependencies installed in a SeniorMode checkout, run these actions individually against an existing project. The runtime requires Node.js 22.13.0+.
npm ci
node bin/seniormode.js install --agent codex --project "/path/to/project"
node bin/seniormode.js status --agent codex --project "/path/to/project"
node bin/seniormode.js update --agent codex --project "/path/to/project"
node bin/seniormode.js uninstall --agent codex --project "/path/to/project"
The managed CLI checks that it owns the installed files and that they are unmodified before updating or removing them. It limits changes to the managed skill and its installation records. Configure MCP in your agent if you need it.
CLI & MCP
The optional CLI searches local records. MCP also gives your agent access to the standards and workflows. SeniorMode runs locally without an API key. Your agent may require its own account.
Agent Skill
- Codex · Select
$seniormodein the prompt. - Claude Code · Select
/seniormodeor name SeniorMode in the request. - Cursor · Select the skill with
/in Agent chat. Cursor also finds project skills under.cursor/skills. - Gemini CLI · Use
/skills listto check discovery, then request SeniorMode by name. - OpenCode · Request
seniormodeby name. Useopencode debug skillwhen your OpenCode version provides it.
CLI
In the source checkout, install dependencies with npm ci. The CLI can search or open a record. Run node bin/seniormode.js --help for the full command list.
node bin/seniormode.js search "same payment charged twice"
node bin/seniormode.js show payment-idempotency
MCP
Configure your agent to run Node with the absolute path to the CLI and the mcp argument. JSON paths on Windows can use forward slashes. The server provides seven read-only tools over stdio. It shares records, standards and workflows with the installed Skill.
| Tool | Input | Result |
|---|---|---|
search_patterns |
query, category?, limit? |
Title, one-sentence applicability, key limiting case, trade-off and heuristic relevance score |
get_pattern |
id |
Record, options, checks and sources |
compare_approaches |
id |
Decision rules and trade-offs |
get_checklist |
id |
Verification checklist |
list_standards |
, | Standard IDs and when to use them |
get_standard |
id |
One complete standard |
get_workflow |
build, audit, principles |
Build, Audit or operating principles |
Codex
codex mcp add seniormode -- node "/absolute/path/to/SeniorMode/bin/seniormode.js" mcp
Restart Codex. Remove the registration with codex mcp remove seniormode. Codex MCP
Claude Code
claude mcp add --transport stdio --scope local seniormode -- node "/absolute/path/to/SeniorMode/bin/seniormode.js" mcp
Check the registration with claude mcp list. Running Node directly works with this Windows setup. Claude Code MCP
Cursor · Gemini CLI
Merge this entry into mcpServers. Cursor uses .cursor/mcp.json and Gemini CLI uses .gemini/settings.json at project scope.
{
"mcpServers": {
"seniormode": {
"command": "node",
"args": [
"/absolute/path/to/SeniorMode/bin/seniormode.js",
"mcp"
]
}
}
}
OpenCode
Merge the local server into mcp in your OpenCode configuration.
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"seniormode": {
"type": "local",
"command": [
"node",
"/absolute/path/to/SeniorMode/bin/seniormode.js",
"mcp"
],
"enabled": true
}
}
}
Troubleshooting
Check the project root, installation path, and Node.js version. Restart the session, then invoke SeniorMode by name if the agent has yet to discover it. For managed CLI errors, see the runtime guide. FAQ · CLI & MCP
How to use
New project
Use SeniorMode to build a music streaming app.
Describe what you want to build. Your agent picks a starting design, builds the first useful version, and checks how it works.
Last-room reservations
Existing project
Use SeniorMode to add shuffle to my music app.
Describe the change or the problem in your project. Your agent reads the existing code first. When you ask for an audit, it reports findings without editing files.
Music shuffle · Payment retry
Audit an existing project
Use SeniorMode to find out why posts appear twice in my feed.
Repeated posts in a feed
How it works
SeniorMode starts with your request and examines the project. It spots decisions you may not have known to ask about, checks which guidance fits, and explains how the result was verified.
- Request. “Checkout sometimes charges me twice when my connection drops.”
- Investigate. The payment can succeed before the reply reaches the customer.
- Choose a fix. Retrying with the same purchase ID lets the system recognize the original payment.
- Verify. The local example drops the first reply. The retry returns HTTP
200and the database contains 1 charge.
The Agent Skill routes work to Build, Audit and the relevant standards. The CLI and MCP use the same English records and in-memory SQLite search for English and Turkish queries. Managed installations copy the Skill into a chosen project. The catalog and README generators organize this material for agents and readers.
Payment retry · Skill Directory
Examples
Music shuffle · Last-room reservations · Payment retry · Repeated posts in a feed
Music shuffle
Add shuffle to my music app.
Every song stays in the queue, and tracks by the same artist are spaced out when the playlist allows. Run this example to see the song titles and the complete order for each method.
Code and verification
The runnable example shows all song titles. Sorting with random comparisons does not give each order equal odds. The tests check all six permutations of a three-item list, track preservation, and playlists where a dominant artist makes some repeats unavoidable.
node examples/shuffle.mjs
node --test test/shuffle.test.js
Last-room reservations
Build a reservation system for my small hotel.
Only one guest can book the last room, even when requests arrive together. The test sends two requests at the same time. One books the room. The other finds it taken.
Code and verification
Two database connections compete for the same room and night. One request returns 201, the other 409, and one booking is stored. This example covers immediate confirmation for one night.
node --test test/reservation.test.js
Payment retry
Build a checkout with payments.
Customers can retry after a lost response without getting charged twice. The test drops the first reply, retries the request, and confirms only one charge was recorded.
Code and verification
The test drops the first reply and retries from a separate connection. It checks one stored charge and a conflict when the same purchase ID is reused with a different amount. With a real provider, reconcile an unknown result according to its contract.
node --test test/payment-retry.test.js
Repeated posts in a feed
Some posts in this feed show up twice. Find out why.
New posts can arrive without making earlier posts show up twice in the feed. The example inserts a post between requests and shows two ways to continue the feed, including one that avoids repeating a post.
Code and verification
A new post arrives between page requests. Offset returns IDs 8, 6 and repeats item 8. The cursor continues from (9, 8) with 6, 99. The test covers this insertion and preserves the existing offset route.
node --test test/pagination.test.js