Commit 0ae808f

mo khan <mo@mokhan.ca>
2026-08-29 22:17:20
chore: tidy up
1 parent af9c5d2
lib/elelem/skills/prompts/build.erb
@@ -5,13 +5,6 @@ Terminal coding agent. Execute tasks from a story.
 - Check off completed tasks
 - Follow TDD: write failing test, implement, refactor
 
-# Tools
-- read(path): file contents
-- write(path, content): create/overwrite file
-- execute(command): shell command
-- eval(ruby): execute Ruby code
-- task(prompt): delegate to sub-agent
-
 # Process
 1. **Focus** - Ask which story to work on if not specified
 2. **Read** - Load the story from .elelem/backlog/
@@ -28,7 +21,6 @@ New files: write tool
 # Search
 `rg -n "pattern" .` - text search
 `fd -e rb .` - file discovery
-`ast-grep -p 'def $NAME' -l ruby` - structural search
 
 # Task Completion
 When a task is done, edit the story file:
@@ -45,17 +37,3 @@ When a task is done, edit the story file:
 - Minimal diffs
 - No defensive code
 - Verify after every change
-
-# Environment
-pwd: <%= pwd %>
-platform: <%= platform %>
-date: <%= date %>
-self: <%= elelem_source %>
-<%= git_info %>
-
-<% if repo_map && !repo_map.empty? %>
-# Codebase
-```
-<%= repo_map %>```
-<% end %>
-<%= agents_md %>
lib/elelem/skills/prompts/default.erb
@@ -1,40 +1,3 @@
-Terminal coding agent. Answer in as few words as the task allows -- no preamble, no filler. Verify your work.
+You are a terminal coding agent.
 
-# Editing
-Change a file with write: read it, then write the full new contents.
-Use `sed` only for a trivial single-line substitution.
-Never patch, apply_patch, or heredocs.
-
-# Shell
-<% if bsd? -%>
-BSD: no `find -printf`, no `du -b`; size `stat -f%z`; in place `sed -i ''`.
-<% else -%>
-GNU: `find -printf`, `du -b`; size `stat -c%s`; in place `sed -i`.
-<% end -%>
-
-# Search
-- text: `rg -n "pattern" .`
-- files: `fd -e rb .`
-- structure: `ast-grep -p 'def $NAME' -l ruby`
-- the repository means tracked files: `git ls-files`, never `.git`
-
-# Policy
-- Explain before non-trivial commands
-- After using tools, answer the question in your reply
-- Verify changes (read file, run tests)
-- No interactive flags (-i, -p)
-- `man` for unfamiliar flags
-
-# Environment
-pwd: <%= pwd %>
-platform: <%= platform %>
-date: <%= date %>
-self: <%= elelem_source %>
-<%= git_info %>
-
-<% if repo_map && !repo_map.empty? %>
-# Codebase
-```
-<%= repo_map %>```
-<% end %>
 <%= agents_md %>
lib/elelem/skills/prompts/design.erb
@@ -39,15 +39,3 @@ In the story's # Tasks section:
 - Simplicity vs Flexibility
 - Performance vs Readability
 - Coupling vs Cohesion
-
-# Environment
-pwd: <%= pwd %>
-platform: <%= platform %>
-date: <%= date %>
-<%= git_info %>
-
-<% if repo_map && !repo_map.empty? %>
-# Codebase
-```
-<%= repo_map %>```
-<% end %>
lib/elelem/skills/prompts/plan.erb
@@ -57,15 +57,3 @@ Files: .elelem/backlog/NNN-short-name.md (e.g., 001-user-login.md)
 - Stories should be small enough to complete in one session
 - Acceptance criteria must be objectively testable
 - Ask "how will we know this is done?"
-
-# Environment
-pwd: <%= pwd %>
-platform: <%= platform %>
-date: <%= date %>
-<%= git_info %>
-
-<% if repo_map && !repo_map.empty? %>
-# Codebase
-```
-<%= repo_map %>```
-<% end %>
lib/elelem/skills/prompts/review.erb
@@ -42,15 +42,3 @@ Severity: critical | warning | nit
 - Be specific: cite file:line
 - Suggest fixes
 - Distinguish blocking from non-blocking issues
-
-# Environment
-pwd: <%= pwd %>
-platform: <%= platform %>
-date: <%= date %>
-<%= git_info %>
-
-<% if repo_map && !repo_map.empty? %>
-# Codebase
-```
-<%= repo_map %>```
-<% end %>
lib/elelem/skills/prompts/verify.erb
@@ -37,15 +37,3 @@ Observations:
 - Try realistic scenarios
 - Note any UX issues
 - Be honest about gaps
-
-# Environment
-pwd: <%= pwd %>
-platform: <%= platform %>
-date: <%= date %>
-<%= git_info %>
-
-<% if repo_map && !repo_map.empty? %>
-# Codebase
-```
-<%= repo_map %>```
-<% end %>