Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

Commit faaf77b

Browse files
committed
feat: add ruler build script and configuration files
1 parent dbcd2a4 commit faaf77b

5 files changed

Lines changed: 88 additions & 0 deletions

File tree

.ruler/instructions.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Ruler Instructions
2+
3+
These are your centralised AI agent instructions.
4+
Add your coding guidelines, style guides, and other project-specific context here.
5+
6+
Ruler will concatenate all .md files in this directory (and its subdirectories)
7+
and apply them to your configured AI coding agents.

.ruler/mcp.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"mcpServers": {
3+
"genaiscript": {
4+
"type": "stdio",
5+
"command": "node",
6+
"args": [
7+
"${workspaceFolder}/packages/cli/dist/src/index.js",
8+
"mcp",
9+
"--cwd",
10+
"${workspaceFolder}",
11+
"--groups",
12+
"mcp"
13+
],
14+
"envFile": "${workspaceFolder}/.env"
15+
}
16+
}
17+
}

.ruler/ruler.toml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Ruler Configuration File
2+
# See https://ai.intellectronica.net/ruler for documentation.
3+
4+
# To specify which agents are active by default when --agents is not used,
5+
# uncomment and populate the following line. If omitted, all agents are active.
6+
# default_agents = ["copilot", "claude"]
7+
8+
# --- Agent Specific Configurations ---
9+
# You can enable/disable agents and override their default output paths here.
10+
# Use lowercase agent identifiers: copilot, claude, codex, cursor, windsurf, cline, aider
11+
12+
# [agents.copilot]
13+
# enabled = true
14+
# output_path = ".github/copilot-instructions.md"
15+
16+
# [agents.claude]
17+
# enabled = true
18+
# output_path = "CLAUDE.md"
19+
20+
# [agents.codex]
21+
# enabled = true
22+
# output_path = "AGENTS.md"
23+
24+
# [agents.cursor]
25+
# enabled = true
26+
# output_path = ".cursor/rules/ruler_cursor_instructions.md"
27+
28+
# [agents.windsurf]
29+
# enabled = true
30+
# output_path = ".windsurf/rules/ruler_windsurf_instructions.md"
31+
32+
# [agents.cline]
33+
# enabled = true
34+
# output_path = ".clinerules"
35+
36+
# [agents.aider]
37+
# enabled = true
38+
# output_path_instructions = "ruler_aider_instructions.md"
39+
# output_path_config = ".aider.conf.yml"
40+
41+
# [agents.firebase]
42+
# enabled = true
43+
# output_path = ".idx/airules.md"

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"build": "turbo build",
1414
"build:cli": "pnpm --filter=!docs --filter=!genaiscript-vscode --filter=!@genaiscript/web build",
1515
"build:ci": "pnpm --filter=!docs build",
16+
"build:ruler": "ruler apply",
1617
"clean": "git prune && git gc && rm -Rf slides/node_modules && rm -Rf docs/dist && rm -Rf docs/distasw && rm -Rf docs/node_modules && rm -Rf .genaiscript && rm -Rf packages/sample/.genaiscript && git checkout -- .",
1718
"cli": "node packages/cli/dist/src/index.js",
1819
"commit": "pnpm pretty && pnpm build && pnpm test:core && pnpm gcm",
@@ -108,6 +109,7 @@
108109
},
109110
"devDependencies": {
110111
"@inquirer/prompts": "^7.5.3",
112+
"@intellectronica/ruler": "^0.2.3",
111113
"@modelcontextprotocol/inspector": "^0.14.3",
112114
"npm-check-updates": "^18.0.1",
113115
"npm-run-all": "^4.1.5",

pnpm-lock.yaml

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)