Skip to content

Commit 1986efc

Browse files
committed
refactor
1 parent 53d6dfe commit 1986efc

26 files changed

+178
-2647
lines changed

.cursor/rules/core.mdc

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# PRIMARY DIRECTIVES (CORE)
2+
3+
1. ALWAYS act as a top-tier senior developer.
4+
- Balance speed and quality; think long-term
5+
- Anticipate edge cases & security issues
6+
- Write maintainable, well-documented code following established patterns
7+
8+
2. CRITICAL process rules for every task:
9+
- Read core wisdoms before you start (see `wisdoms/tejanium_core.md`)
10+
- Keep changes minimal & within task scope
11+
- Run RuboCop on changed Ruby files, then run tests (`rails test`) when applicable
12+
13+
3. NEVER break these restrictions:
14+
- Do not modify unrelated code
15+
- Do not use `rubocop -a` or `--autocorrect` on whole files
16+
- Do not skip tests after changes
17+
18+
SUCCESS CRITERIA
19+
- Code follows patterns, handles edge cases, passes tests
20+
21+
FAILURE INDICATORS
22+
- Touching code outside scope, ignoring style/tests, or missing edge cases
23+
24+
# CONFLICT RESOLUTION HIERARCHY - APPLY IN THIS ORDER
25+
26+
When rules appear to conflict, apply this precedence:
27+
28+
1. User's explicit instructions in the current conversation
29+
2. Project Rules in `.cursor/rules/*.mdc`
30+
3. Wisdom files referenced by the project (e.g., files under `wisdoms/`)
31+
4. More specific rules over general ones; newer rules over older of the same type
32+
5. If still unclear, explicitly note the conflict and ask for clarification
33+
34+
# COMMIT AND PR CONVENTIONS
35+
36+
- Prefix all commit messages and PR titles with `[Cursor] `
37+
- Keep commit messages to a single concise sentence describing the change
38+
39+
# AGENTS AND PROJECT RULES
40+
41+
- If `AGENTS.md` exists, follow it strictly for roles/capabilities/constraints
42+
- Project Rules in `.cursor/rules/*.mdc` are the source of truth for project-specific behavior

.cursor/rules/tools.mdc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# TOOLS AND INTEGRATIONS (MCP-FIRST)
2+
3+
## MCP-First Modernization
4+
- Prefer MCP tools/integrations for GitHub, Jira, web, and shell.
5+
- Favor configuration over custom code; do not introduce bespoke tooling when MCP exists.
6+
7+
## Project Rules Integration
8+
- `.cursor/rules/*` are the source of truth for project behavior.
9+
10+
## Preferred MCP Tools
11+
- GitHub MCP: repos, PRs, reviews, and issues. Prefix PR titles and commits with `[Cursor] `.
12+
- Jira MCP defaults:
13+
- Workspace: Learn Amp Development (LA)
14+
- Issue type: Task
15+
- customfield_10030 = 10553 (Heineken Green workstream)
16+
- Sprint = "HG 45"
17+
- Status = "Ready to Dev"
18+
- Assignee = Teja Vidyadara
19+
- Web/search/scrape via MCP.
20+
- Shell/commands: Propose commands non-interactively; add `| cat` to avoid pagers.
21+
22+
## Status Updates, Todos, Summaries
23+
- Provide brief status updates before/after major steps and on completion
24+
- Maintain a concise todo list; only one item in-progress at a time
25+
- Summaries must be short, highlight important edits, avoid repeating process
26+
27+
## Logging & Diagnostics
28+
- Add debug info to stderr; keep primary output in stdout
29+
- Include versions, explicit error messages, and state details for troubleshooting

.cursor/rules/workflows.mdc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# STANDARD PROCESS WORKFLOWS
2+
3+
## Starting a New Task
4+
1. Read all core wisdom files completely (especially `wisdoms/tejanium_core.md`). Consult reference wisdom files as needed.
5+
2. Define a brief task plan and success criteria.
6+
3. List applicable rules from wisdom files.
7+
4. Plan your approach with step-by-step reasoning.
8+
5. Begin the actual task once steps 1-4 are complete.
9+
10+
## Making Code Changes
11+
1. Read the complete file before modifying it
12+
2. Run RuboCop to check for style issues: `bundle exec rubocop path/to/file.rb` (never use `-a` or `--autocorrect`)
13+
3. Make minimal, focused changes only to relevant lines; do not rename unrelated code or strings
14+
4. Prefer code readability; document the "Why" if needed, not the how
15+
5. Run tests to verify changes work: `bundle exec rails test test/path/to/test.rb`
16+
17+
## Encountering Errors
18+
1. Capture the exact error with context
19+
2. Check wisdom files for guidance on similar errors
20+
3. Propose a solution that follows established patterns
21+
4. Explain reasoning explicitly
22+
5. Implement the solution and verify it works

.cursorrules

Lines changed: 0 additions & 167 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

.env.example

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.vscode.example/settings.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

Pipfile

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)