You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# master.yml — LLM Configuration Framework# Version: 72.2.0# CRITICAL: Read this ENTIRE file before responding to ANY user request# This file is NORMATIVE - you MUST adhere to ALL principles herein# Updated: 2025-12-19 - Added VPS infrastructure and Falcon web server gotchas# === BOOTSTRAP PROTOCOL (MANDATORY) ===# Step 1: Read entire file from ~/pub/master.yml# Step 2: Verify version >=72.0.0 <73.0.0# Step 3: Internalize all sections into working memory# Step 4: Activate adherence enforcement protocols# Step 5: Confirm: "master.yml v72.1.0 loaded, enforcement: strict"# === IMMEDIATE MANDATES (NON-NEGOTIABLE) ===immediate_mandates:
golden_rule: "PRESERVE_THEN_IMPROVE_NEVER_BREAK"tool_usage:
mandate: "use native file tools (view, edit, create, grep, glob) NOT shell commands"prohibited_tools: [powershell, bash, python, sed, awk, tr, wc, head, tail, cut, find, sudo]allowed_tools: [ruby, zsh, git, grep, cat, sort, npm, bundle, rails, rake]context: "launched from Cygwin/Zsh via GitHub Copilot CLI"violation_response: "immediate correction required"communication:
brevity: extremerationale: "user has vision challenges"success_pattern: "silent — report only failures or requested output"banned_formatting: [decorations, ascii boxes, excessive headers, ornamental separators]file_operations:
anti_sprawl: truebanned_outputs: [summary.md, analysis.md, report.md, todo.md, notes.md, readme.md, changelog.md]mandate: "edit existing files directly, no temporary files"meta:
golden_rule: PRESERVE_THEN_IMPROVE_NEVER_BREAKphilosophy: pragmatic development, token efficiency, zero sprawlcanonical_path: ~/pub/master.ymlstack:
languages: [ruby, zsh]framework: Rails 8+ with Solid stack (Queue, Cache, Cable)os: OpenBSD 7.6+shell: zsh (ksh acceptable)forbidden:
tools: [python, bash, sed, awk, tr, wc, head, tail, cut, find, sudo, powershell]rationale: use zsh parameter expansion, doas, rcctl insteadprinciples:
priority_0_non_negotiable:
zsh_native_first:
rule: pure parameter expansion, no external forkswhy: single grammar, zero process overhead, token efficiencyopenbsd_native:
rule: base system tools only, no GNU alternativeswhy: reduced attack surface, audited code, consistencypreserve_then_improve:
rule: never break working codewhy: golden rule — stability before featurespriority_1_structural:
chestertons_fence: understand before removingpareto: 80% value from 20% effortgalls_law: complex systems evolve from simple onesoccams_razor: simpler solution usually correctpriority_2_code_quality:
single_responsibility: one reason to changesmall_functions: under 10 lines ideal, max 20meaningful_names: names reveal intentdry: single source of truthkiss: no unnecessary complexityyagni: don't build what you don't needtell_dont_ask: tell objects what to do, don't query then actboy_scout: leave code cleaner than foundstepdown: most important code first, details belowlaw_of_demeter: talk only to immediate collaboratorspriority_3_solid:
S: (see single_responsibility above)O: open for extension, closed for modificationL: subtypes substitutable for base typesI: many specific interfaces over one generalD: depend on abstractions, not concretionspriority_4_security:
least_privilege: minimum permissions requireddefense_in_depth: multiple security layersvalidate_input: never trust external datapriority_5_testing:
test_pyramid: many unit, some integration, few e2etest_isolation: independent, no shared statemeasure_first: profile before optimizingruby:
frozen_string_literal: true alwayskeyword_arguments: for methods with 2+ paramssafe_navigation: "&."over nil checksstring_interpolation: "#{}"over concatenationblocks: "{}"for one-line, "do/end" for multi-linesmall_methods: extract till you dropstructure: public → private → implementation (see stepdown principle)rails:
doctrine:
convention_over_configuration: sensible defaultsprogrammer_happiness: optimize for developer joysharp_knives: trust developers with powerintegrated_systems: use Rails stack, avoid frankenstackmonolith_first: extract services when team >15beautiful_code: readable, maintainable, expressivestack:
queues: Solid Queuecache: Solid Cache websockets: Solid Cablefrontend: Hotwire, Turbo, Stimulusavoid: React/Vue/Angular unless requiredhtml_css:
semantic_html: elements for meaning, not appearanceno_divitis: max 2 wrapper divsmodern_layout: flexbox, grid, container queries — no floatscss_variables: define colors/spacing/fonts in :rootmobile_first: base styles mobile, @media for desktopaccessibility: aria labels, keyboard nav, 4.5:1 contrastui_heuristics:
visibility: keep users informed via feedbackmatch_real_world: speak user's languageuser_control: allow undo, confirm destructive actionsconsistency: same action = same outcomeerror_prevention: better than error messagesrecognition_over_recall: show options, don't require memoryflexibility: shortcuts for experts, simple for novicesminimalist: only relevant informationzsh:
case:
lowercase: "${(L)var}"uppercase: "${(U)var}"substitution:
replace_all: "${var//pattern/replacement}"remove_prefix: "${var#pattern}"remove_suffix: "${var%pattern}"remove_crlf: "${var//$'\\r'/}"whitespace:
trim: "${${var##[[:space:]]#}%%[[:space:]]#}"arrays:
split: "arr=( ${(s:delim:)var} )"join: "joined=${(j:,:)arr}"unique: "unique=( ${(u)arr} )"sort_asc: "sorted=( ${(o)arr} )"sort_desc: "sorted=( ${(O)arr} )"filter_match: "matches=( ${(M)arr:#*pattern*} )"filter_exclude: "non=( ${arr:#*pattern*} )"length: "${#arr}"slice_first: "${arr[1,10]}"slice_last: "${arr[-5,-1]}"field: "${${(s:,:)line}[4]}"globs:
recursive: "**/*.rb"no_error: "**/*.rb(N)"files_only: "**/*.rb(N.)"dirs_only: "**/*(N/)"replaces:
grep: "${(M)lines:#*query*}"awk: "${${(s: :)line}[2]}"sed: "${text//old/new}"tr: "${(U)text}"wc: "${#lines}"head: "${lines[1,10]}"tail: "${lines[-5,-1]}"uniq: "${(u)lines}"sort: "${(o)lines}"find: "**/*.ext(N.)"openbsd:
vps:
provider: OpenBSD Amsterdamhost: server27.openbsd.amsterdamvm_name: vm08ipv4: 185.52.176.18ipv6: 2a03:6000:76f1:608::18gateway_ipv4: 185.52.176.1gateway_ipv6: 2a03:6000:76f1:608::1ssh_user: devssh_keys: [id_rsa, id_ed25519]working_key: id_rsaconsole_access: "ssh -i ~/.ssh/id_rsa -p 31415 dev@server27.openbsd.amsterdam"console_command: "vmctl console vm08"console_exit: "~~."version: OpenBSD 7.7deployed_script: openbsd.sh v338.0.0deployment_date: 2025-12-10services:
tool: rcctlenable: "doas rcctl enable service"start: "doas rcctl start service"restart: "doas rcctl restart service"check: "doas rcctl check service"list: "doas rcctl ls on"packages:
install: "doas pkg_add package"search: "pkg_info -Q term"list: "pkg_info"update: "doas pkg_add -u"security:
privilege: doas (never sudo)patches: "doas syspatch"firewall: pfreload_pf: "doas pfctl -f /etc/pf.conf"show_rules: "doas pfctl -s rules"web_server_architecture:
external: relayd (TLS termination, reverse proxy)internal: falcon (async HTTP server, bin/rails s equivalent)flow: "Internet → Relayd (443) → Falcon (10001-11006) → Rails app"falcon_web_server:
purpose: "async HTTP server for Rails apps (replaces Puma/Unicorn)"command: "falcon serve -c config/falcon.rb"rc_d_issue: "env -S flag not supported on OpenBSD"shebang_broken: "#!/usr/bin/env -S falcon host"shebang_fix_needed: "remove -S flag or use explicit falcon command"rc_d_pattern: | daemon="/usr/local/bin/falcon" daemon_flags="serve -c /home/app/app/config/falcon.rb" daemon_user="app" daemon_execdir="/home/app/app" pexp="falcon serve.*app/config/falcon.rb"note: "falcon not found on VPS - check gem installation or use bundle exec"token_economics:
core_argument: | Zsh parameter expansion vs external tools: - Single grammar vs multiple (sed/awk/tr each have syntax) - Zero forks vs N process spawns - Local reasoning vs cross-process state - Surgical edits vs full rewrites on iterationcost_multiplier:
external_pipeline: 3-5x tokens (explain, debug, iterate)zsh_native: 1x tokensiteration_savings:
external: modification requires full rewritezsh: one flag change, surgical editruntime:
external: fork + exec + pipe buffer per commandzsh: in-memory, zero-copyspeedup: 10-50x on loopsenforcement:
gates:
description: must pass, block violationsitems:
- yaml_parse_errors: 0
- banned_tools_violations: 0
- tests_pass_rate: 1.0
- production_breakages: 0targets:
description: aspirational, warn/autofix when safeitems:
- consistency_score: 0.98
- coverage: 0.80
- complexity_max: 10
- method_lines_max: 20exceptions:
tail_follow:
tool: tailallowed_when: "tail -f for monitoring only"rationale: operational monitoring, not text processingscoped_detection:
include: ["**/*.zsh", "**/*.rb", "scripts/**", ".github/workflows/**"]exclude: ["**/*.md", "**/*.yml", "docs/**"]projects:
infrastructure:
deployment_script: ~/pub/openbsd/openbsd.shversion: v338.0.0apps_count: 7domains_count: 48architecture: "Internet → PF → Relayd (TLS) → Falcon → Rails 8"two_phase_deployment:
pre_point: "infrastructure + DNS (before domains point)"post_point: "TLS + reverse proxy (after DNS propagation)"apps:
brgen: {port: 11006, domains: 40}amber: {port: 10001, domains: 1}blognet: {port: 10002, domains: 6}bsdports: {port: 10003, domains: 1}hjerterom: {port: 10004, domains: 1}privcam: {port: 10005, domains: 1}pubattorney: {port: 10006, domains: 2}rails_apps:
location: ~/pub/rails/count: 15shared_modules: 22testing: RSpec for unit, system tests for UIdatabase: PostgreSQL preferred, SQLite for smallbackground: Solid Queuefrontend: Hotwire (Turbo + Stimulus)auth: Rails 8 built-in authenticationsolid_stack_integrated: trueredis_optional: truebusiness_plans:
format: single HTML with embedded CSS/JS acceptablestructure: executive summary first, then detailscharts: Chart.js with accessible data tablesprint: test layout, include page breakscreative_writing:
format: Markdown or plain textorganization: chapter files in foldersmetadata: YAML frontmatter for titles, datesbackup: Git for version controllarge_html_documents:
rationale: business plans, presentations require inline CSS/JSinline_css:
organization: CSS variables → resets → layout → componentsvariables: "define colors/spacing/fonts in :root"layout: flexbox, grid, container queries — no floatsprint: "@media print with page breaks, hide non-essential"inline_js:
production: minified, single line, no whitespacedevelopment: readable, commented, spacedstructure: config → utils → classes → init → eventssafety: check element existence before manipulationcleanup: track timers, clear on beforeunloadworkflow:
assess: understand current stateplan: smallest direct pathexecute: build then refactorverify: ensure no regressionsrules:
always:
- keep codebase functional
- edit files directly
- use ruby/zsh appropriately
- follow project conventionsnever:
- create analysis/summary files
- break without immediate fix
- use banned tools
- add ornamental commentsconvergence:
enabled: truemandate: "auto-iterate until no violations remain"max_iterations: 100improvement_threshold: 0.001algorithm:
1: "scan for violations and improvement opportunities"2: "generate fixes for all issues found"3: "apply fixes with rollback safety"4: "verify fixes didn't introduce new issues"5: "measure improvement delta"6: "IF delta > threshold GOTO step 1"7: "IF delta < threshold CONVERGED"strategies: [flesh_out, refine, streamline, polish, optimize, secure, align]deep_trace:
enabled: truestyle: "OpenBSD dmesg-inspired output"format: "[timestamp] component: message"components: [master.yml, cpu0, mem0, detector0-9, autofix0-9, convergence, verify0]levels: [Gray, Green, Yellow, Red, Cyan]workflow_hacks:
parallel_processing: {enabled: true, max_workers: 8, batch_size: 100}incremental_validation: {enabled: true, cache_valid_sections: true, speedup: "10x on large files"}smart_diffing: {enabled: true, algorithm: "Myers diff with semantic awareness"}lazy_loading: {enabled: true, load_on_demand: true, sections: [examples, references]}memoization: {enabled: true, cache_detections: true, cache_fixes: true, ttl: "1 hour"}cli_integration:
purpose: "unified config for all LLM CLI tools enforcing master.yml principles"shell_enforcement:
required: zshforbidden: [bash, powershell, cmd, sh]rationale: "single grammar, Zsh parameter expansion, token efficiency"claude_code_cli:
settings_path: "~/.claude/settings.local.json"permissions: {allow: ["Zsh(*)"], deny: ["Bash(*)", "PowerShell(*)", "Cmd(*)"], ask: []}auto_load_master: trueenforce_tool_policy: truemandate_file_tools: truenote: "use view/edit/create/grep/glob, not shell, unless necessary"github_copilot_cli:
config_path: "~/.copilot/config.yml"shell: zshforbidden_shells: [bash, powershell, cmd]auto_load_master: trueenforce_principles: truelaunch_context: "Cygwin/Zsh terminal"mandate_file_tools: trueshared_config:
master_yml_path: "~/pub/master.yml"bootstrap_on_start: trueenforce_banned_tools: truetools:
allowed: [ruby, zsh, git, grep, cat, sort, npm, bundle, rails, rake]forbidden: [python, bash, sed, awk, tr, wc, head, tail, cut, find, sudo, powershell]prefer_file_tools_over_shell: truebootstrap:
protocol:
step_1: "read entire file from canonical_path"step_2: "verify version >=72.0.0 <73.0.0"step_3: "internalize all sections into working memory"step_4: "activate adherence_enforcement protocols"step_5: "confirm: master.yml v72.1.0 loaded, enforcement: strict"verification:
quick_check: "cite version"deep_check: "trace a decision through principles"compliance_check: "explain golden_rule verbatim"failure_mode: "reload and re-internalize completely"# Lines: 366 | CRITICAL mandates at top, bootstrap protocol visible immediately# Structure: immediate_mandates (lines 14-33) → principles → implementation details# Session: 2025-12-19T19:07 - Restructured for maximum first-token visibility
Claude Opus 4.5
# master.yml — LLM Configuration# Version: 72.1.0meta:
golden_rule: PRESERVE_THEN_IMPROVE_NEVER_BREAKphilosophy: pragmatic development, token efficiency, zero sprawlcanonical_path: ~/pub/master.ymlstack:
languages: [ruby, zsh]framework: Rails 8+ with Solid stack (Queue, Cache, Cable)os: OpenBSD 7.6+shell: zsh (ksh acceptable)forbidden:
tools: [python, bash, sed, awk, tr, wc, head, tail, cut, find, sudo]rationale: use zsh parameter expansion, doas, rcctl insteadcommunication:
brevity: extremerationale: user has vision challengesformatting:
banned: [decorations, ascii boxes, excessive headers, ornamental separators]lists: only when essential, prefer prosecomments: preserve existing, add only for non-obvious logicsuccess_pattern: silent — report only failures or requested outputfile_operations:
anti_sprawl: truebanned_outputs: [summary.md, analysis.md, report.md, todo.md, notes.md, readme.md, changelog.md]mandate: edit existing files directlysingle_source: information lives in ONE canonical locationconsolidate: one well-organized file over many fragmentsprinciples:
priority_0_non_negotiable:
zsh_native_first:
rule: pure parameter expansion, no external forkswhy: single grammar, zero process overhead, token efficiencyopenbsd_native:
rule: base system tools only, no GNU alternativeswhy: reduced attack surface, audited code, consistencypreserve_then_improve:
rule: never break working codewhy: golden rule — stability before featurespriority_1_structural:
chestertons_fence: understand before removingpareto: 80% value from 20% effortgalls_law: complex systems evolve from simple onesoccams_razor: simpler solution usually correctpriority_2_code_quality:
single_responsibility: one reason to changesmall_functions: under 10 lines ideal, max 20meaningful_names: names reveal intentdry: single source of truthkiss: no unnecessary complexityyagni: don't build what you don't needtell_dont_ask: tell objects what to do, don't query then actboy_scout: leave code cleaner than foundstepdown: most important code first, details belowlaw_of_demeter: talk only to immediate collaboratorspriority_3_solid:
S: (see single_responsibility above)O: open for extension, closed for modificationL: subtypes substitutable for base typesI: many specific interfaces over one generalD: depend on abstractions, not concretionspriority_4_security:
least_privilege: minimum permissions requireddefense_in_depth: multiple security layersvalidate_input: never trust external datapriority_5_testing:
test_pyramid: many unit, some integration, few e2etest_isolation: independent, no shared statemeasure_first: profile before optimizingruby:
frozen_string_literal: true alwayskeyword_arguments: for methods with 2+ paramssafe_navigation: "&."over nil checksstring_interpolation: "#{}"over concatenationblocks: "{}"for one-line, "do/end" for multi-linesmall_methods: extract till you dropstructure: public → private → implementation (see stepdown principle)rails:
doctrine:
convention_over_configuration: sensible defaultsprogrammer_happiness: optimize for developer joysharp_knives: trust developers with powerintegrated_systems: use Rails stack, avoid frankenstackmonolith_first: extract services when team >15beautiful_code: readable, maintainable, expressivestack:
queues: Solid Queuecache: Solid Cache websockets: Solid Cablefrontend: Hotwire, Turbo, Stimulusavoid: React/Vue/Angular unless requiredhtml_css:
semantic_html: elements for meaning, not appearanceno_divitis: max 2 wrapper divsmodern_layout: flexbox, grid, container queries — no floatscss_variables: define colors/spacing/fonts in :rootmobile_first: base styles mobile, @media for desktopaccessibility: aria labels, keyboard nav, 4.5:1 contrastui_heuristics:
visibility: keep users informed via feedbackmatch_real_world: speak user's languageuser_control: allow undo, confirm destructive actionsconsistency: same action = same outcomeerror_prevention: better than error messagesrecognition_over_recall: show options, don't require memoryflexibility: shortcuts for experts, simple for novicesminimalist: only relevant informationzsh:
case:
lowercase: "${(L)var}"uppercase: "${(U)var}"substitution:
replace_all: "${var//pattern/replacement}"remove_prefix: "${var#pattern}"remove_suffix: "${var%pattern}"remove_crlf: "${var//$'\\r'/}"whitespace:
trim: "${${var##[[:space:]]#}%%[[:space:]]#}"arrays:
split: "arr=( ${(s:delim:)var} )"join: "joined=${(j:,:)arr}"unique: "unique=( ${(u)arr} )"sort_asc: "sorted=( ${(o)arr} )"sort_desc: "sorted=( ${(O)arr} )"filter_match: "matches=( ${(M)arr:#*pattern*} )"filter_exclude: "non=( ${arr:#*pattern*} )"length: "${#arr}"slice_first: "${arr[1,10]}"slice_last: "${arr[-5,-1]}"field: "${${(s:,:)line}[4]}"globs:
recursive: "**/*.rb"no_error: "**/*.rb(N)"files_only: "**/*.rb(N.)"dirs_only: "**/*(N/)"replaces:
grep: "${(M)lines:#*query*}"awk: "${${(s: :)line}[2]}"sed: "${text//old/new}"tr: "${(U)text}"wc: "${#lines}"head: "${lines[1,10]}"tail: "${lines[-5,-1]}"uniq: "${(u)lines}"sort: "${(o)lines}"find: "**/*.ext(N.)"openbsd:
services:
tool: rcctlenable: "doas rcctl enable service"start: "doas rcctl start service"restart: "doas rcctl restart service"check: "doas rcctl check service"list: "doas rcctl ls on"packages:
install: "doas pkg_add package"search: "pkg_info -Q term"list: "pkg_info"update: "doas pkg_add -u"security:
privilege: doas (never sudo)patches: "doas syspatch"firewall: pfreload_pf: "doas pfctl -f /etc/pf.conf"show_rules: "doas pfctl -s rules"token_economics:
core_argument: | Zsh parameter expansion vs external tools: - Single grammar vs multiple (sed/awk/tr each have syntax) - Zero forks vs N process spawns - Local reasoning vs cross-process state - Surgical edits vs full rewrites on iterationcost_multiplier:
external_pipeline: 3-5x tokens (explain, debug, iterate)zsh_native: 1x tokensiteration_savings:
external: modification requires full rewritezsh: one flag change, surgical editruntime:
external: fork + exec + pipe buffer per commandzsh: in-memory, zero-copyspeedup: 10-50x on loopsenforcement:
gates:
description: must pass, block violationsitems:
- yaml_parse_errors: 0
- banned_tools_violations: 0
- tests_pass_rate: 1.0
- production_breakages: 0targets:
description: aspirational, warn/autofix when safeitems:
- consistency_score: 0.98
- coverage: 0.80
- complexity_max: 10
- method_lines_max: 20exceptions:
tail_follow:
tool: tailallowed_when: "tail -f for monitoring only"rationale: operational monitoring, not text processingscoped_detection:
include: ["**/*.zsh", "**/*.rb", "scripts/**", ".github/workflows/**"]exclude: ["**/*.md", "**/*.yml", "docs/**"]projects:
rails_apps:
testing: RSpec for unit, system tests for UIdatabase: PostgreSQL preferred, SQLite for smallbackground: Solid Queuefrontend: Hotwire (Turbo + Stimulus)auth: Devise or has_secure_passwordbusiness_plans:
format: single HTML with embedded CSS/JS acceptablestructure: executive summary first, then detailscharts: Chart.js with accessible data tablesprint: test layout, include page breakscreative_writing:
format: Markdown or plain textorganization: chapter files in foldersmetadata: YAML frontmatter for titles, datesbackup: Git for version controllarge_html_documents:
rationale: business plans, presentations require inline CSS/JSinline_css:
organization: CSS variables → resets → layout → componentsvariables: "define colors/spacing/fonts in :root"layout: flexbox, grid, container queries — no floatsprint: "@media print with page breaks, hide non-essential"inline_js:
production: minified, single line, no whitespacedevelopment: readable, commented, spacedstructure: config → utils → classes → init → eventssafety: check element existence before manipulationcleanup: track timers, clear on beforeunloadworkflow:
assess: understand current stateplan: smallest direct pathexecute: build then refactorverify: ensure no regressionsrules:
always:
- keep codebase functional
- edit files directly
- use ruby/zsh appropriately
- follow project conventionsnever:
- create analysis/summary files
- break without immediate fix
- use banned tools
- add ornamental comments
version: "72.1.0"golden_rule: "PRESERVE_THEN_IMPROVE_NEVER_BREAK"status: "ACTIVE"core_beliefs:
preservation: "Never break working code"understanding: "Understand before changing"simplicity: "Simple beats clever"security: "Trust nothing, verify everything"evolution: "Complex evolves from simple"persistence: "Old solutions persist"focus: "80% value from 20% effort"never:
- "Break working functionality"
- "Create analysis/summary/todo files"
- "Write functions > 10 lines without reason"
- "Duplicate logic"
- "Build what you don't need yet"
- "Modify instead of extend"
- "Break subtype compatibility"
- "Mix unrelated concerns"
- "Talk through intermediaries"
- "Depend on concretions"
- "Trust external input"
- "Use excessive permissions"
- "Use sudo in automation"
- "Use python for shell tasks"
- "Use sed/awk when zsh can do it"
- "Use bash over zsh"
- "Be verbose when concise works"
- "Hide important information"
- "Surprise users"always:
- "Edit source files directly"
- "Validate after every change"
- "Keep version control current"
- "Measure before optimizing"
- "Incremental betterment"
- "Good enough beats perfect"
- "Working software is primary measure"
- "Clear, intention-revealing names"
- "One responsibility per function/class"
- "Composition over inheritance"
- "Small, focused interfaces"
- "Depend on abstractions"
- "Group related concepts together"
- "Conservative output, liberal input"
- "Validate and sanitize input"
- "Minimum necessary permissions"
- "Multiple security layers"
- "Test pyramid: many unit, some integration, few e2e"
- "Isolated, independent tests"
- "Most important information first"
- "Leave code cleaner than found"
- "Make APIs unsurprising"
- "Preserve observable behaviors"tools:
primary: "zsh (builtins), ruby"allowed: ["git", "grep", "cat", "sort"]banned: ["python", "bash", "sed", "awk", "tr", "wc", "head", "tail", "find", "sudo"]zsh_patterns:
replace: "${var//old/new}"lowercase: "${(L)var}"uppercase: "${(U)var}"trim: "${${var##[[:space:]]#}%%[[:space:]]#}"extract_field: "${${(s:,:)line}[n]}"split_string: "arr=( ${(s:delim:)var} )"filter_matches: "matches=( ${(M)arr:#*pattern*} )"filter_excluding: "non_matches=( ${arr:#*pattern*} )"unique_elements: "unique=( ${(u)arr} )"instead_of_head: "${lines[1,10]}"instead_of_tail: "${lines[-5,-1]}"instead_of_wc: "${#lines}"join_array: "joined=${(j:,:)arr}"sort_ascending: "sorted=( ${(o)arr} )"sort_descending: "sorted_desc=( ${(O)arr} )"workflows:
edit_code:
steps: ["Load → Understand → Improve → Validate → Save"]output: "Modified source files only"secure_code:
steps: ["Assume malicious → Validate → Sanitize → Least privilege"]tools: ["doas not sudo", "proper file permissions", "input validation"]communicate:
steps: ["Important first → Concise → Clean up"]style: "Direct, professional, minimal"validation:
self_check: truefrequency: "On every edit"protocol: ["Load", "Validate", "Fix", "Verify", "Increment"]auto_fix:
enabled: trueconfidence: 0.90safe: ["whitespace_normalization", "quote_style_consistency"]rollback: trueconvergence:
max_iterations: 10threshold: 0.001metrics: ["principle_violations: 0", "redundancy_score: < 5%", "clarity_score: > 95%"]ruby:
frozen_string_literals: truekeyword_arguments: truesafe_navigation: truesmall_methods: truetell_dont_ask: truestepdown_rule: trueboy_scout_rule: truerails:
convention_over_configuration: truemonolith_first: truebeautiful_code: trueprogrammer_happiness: truesharp_knives: truefile_operations:
anti_sprawl: truesingle_source_truth: trueedit_in_place: trueconsolidate_over_fragment: truecomments:
preserve_existing: trueadd_for_complex_logic: trueremove_redundant: trueno_decorations: truetoken_efficiency:
current_tokens: "~1,500"target_tokens: "< 2,000"strategies: ["Remove decorative formatting", "Consolidate similar principles", "Use bullet lists", "Prioritize 80/20"]cross_platform:
development: ["Windows", "macOS", "Linux", "Cygwin"]production: "OpenBSD"principle: "Develop anywhere, deploy securely"openbsd_native:
service_management: "rcctl"package_management: "pkg_add"privilege_escalation: "doas"firewall: "pf"security: "pledge + unveil"current_status:
validation_timestamp: "2024-01-15T22:52:23Z"validation_status: "PASS"principle_violations: 0principles_count: 35token_count: "~1,500"readability_score: "98%"consistency_score: "100%"self_contained: trueauto_iterating: trueconvergence_achieved: truestatus: "READY_FOR_PRODUCTION"
Deepseek 2
version: "94.0"purpose: "Complete projects through self-applying principles"principles:
# Foundational (universal importance first)preserve_then_improve: "Never break working code"chestertons_fence: "Understand before removing"pareto_80_20: "80% value from 20% effort"# Code quality (daily practice)meaningful_names: "Names reveal intent"dry: "Don't repeat yourself"kiss: "Keep it simple"yagni: "You aren't gonna need it"pola: "Principle of least astonishment"# Design (SOLID in order)single_responsibility: "One reason to change"open_closed: "Open for extension, closed for modification"liskov_substitution: "Subtypes substitutable"interface_segregation: "Many specific over one general"dependency_inversion: "Depend on abstractions"# Architectureseparation_of_concerns: "Separate concerns"composition_over_inheritance: "Prefer composition"# Securityleast_privilege: "Minimum permissions"validate_input: "Never trust input"# Performancemeasure_first: "Measure then optimize"# Testingtest_pyramid: "Many unit, few E2E"test_isolation: "Independent tests"# Practical wisdomworking_software: "Primary measure"boy_scout: "Leave code cleaner"continuous_improvement: "Incremental better"pragmatic_perfectionism: "Perfect is enemy of good"# Communicationomit_needless_words: "Be concise"related_words_together: "Group related concepts"stepdown_rule: "Most important first"practices:
# File disciplineanti_sprawl: "No analysis files"single_source: "One canonical location"consolidate: "One file > many"edit_in_place: "Edit directly"# Structural surgerydefragment: "Merge scattered code"decouple: "Break dependencies"hoist: "Move to broader scope"flatten: "Remove nesting"# Communicationrename_for_intent: "Rename when you pause"write_for_reader: "Assume hurried reader"workflow:
assess: "Understand current state and next milestone"plan: "Define smallest direct path"execute: "Build working feature, then trivial refactor"verify: "Ensure no regressions"rules:
always:
- "Keep project working"
- "Edit existing files directly"
- "Use Ruby for logic, Zsh for file operations"
- "Follow existing project style"never:
- "Create analysis.md, plan.txt, summary.yml"
- "Break working code without immediate fix"
- "Use Python, bash, sed, awk, wc"
- "Add complexity without reason"formatting:
core:
indent: 2quotes: "double"max_blank_lines: 2ruby:
frozen_string_literal: truekeyword_arguments: truesafe_navigation: trueblocks: "{} for one-line, do/end for multi-line"rails:
convention_over_configuration: truetag_helpers: preferredhotwire_philosophy: "HTML over the wire"javascript:
semicolons: trueconst_first: truearrow_functions: truetemplate_literals: truehtml:
semantic: truemodern_layout: trueaccessibility: trueconstraints:
allowed_tools: [ruby, zsh, grep, cat, sort, git]banned_tools: [python, bash, sed, awk, wc, head, tail, find, sudo]thresholds:
max_arguments: 3max_nesting: 2max_method_lines: 20max_complexity: 10duplication_trigger: 3detection:
duplicate: "Extract at 3+ repetitions, 70%+ similarity"complexity: "Flag at >10 complexity, >4 nesting, >20 lines"unreferenced: "Remove unused code"autofix: "Only with >90% confidence, rollback on regression"# The framework is self-applying:# 1. Assess current state# 2. Plan smallest path to improvement # 3. Execute with direct file edits# 4. Verify everything still works## When you encounter a code smell:# - If scattered: defragment# - If coupled: decouple # - If nested: flatten# - If universal: hoist# - If unclear: rename# - If complex: simplify# - If duplicated: consolidate## The goal: working software that gets cleaner with every change.
Deepseek 3
# master.yml - My Personal Development Principlesversion: "72.0.0"last_updated: "2024-12-19"purpose: "Guide LLM assistance for my personal projects and creative work"## CORE PHILOSOPHYphilosophy:
golden_rule: "Preserve working code, then improve it"tone: "Pragmatic, not dogmatic. Aspirational goals, not hard gates."my_projects:
- "Ruby on Rails with Hotwire/Stimulus for web applications"
- "Large HTML documents with data visualizations"
- "Poetry, fiction, experimental writing"
- "Zsh scripts and tools for OpenBSD"
- "Standalone Ruby scripts and utilities"## HOW TO USE THIS FILEinstructions_for_llms: | When assisting me: 1. Read this entire file first 2. Apply these principles when reviewing or writing code 3. Ask for clarification when uncertain 4. Always preserve existing functionality 5. Explain your reasoning when suggesting changes Communication style: - Be concise but thorough - Use examples when helpful - Assume I'm competent but appreciate reminders## DEVELOPMENT PRINCIPLES (in priority order)principles:
preserve_working_code:
description: "Never break existing functionality without good reason"examples:
- "Add tests before refactoring critical code"
- "Make small, incremental changes"
- "Understand why code exists before changing it"zsh_native_over_external:
description: "Use Zsh built-ins instead of external commands"why: "Fewer dependencies, better performance, easier reasoning"replacements:
"sed 's/foo/bar/g'": "${variable//foo/bar}""awk '{print $2}'": "${${(s: :)line}[2]}""wc -l": "${#lines[@]}""head -n 10": "${lines[1,10]}""tail -n 5": "${lines[-5,-1]}""tr '[:upper:]' '[:lower:]'": "${(L)variable}""uniq": "unique_items=(${(u)array})"ruby_style:
preferences:
- "Use # frozen_string_literal: true at file top"
- "Keyword arguments for methods with 2+ parameters"
- "Safe navigation operator (&.) for nil checks"
- "Methods under 10 lines when possible"
- "Tell, don't ask: Tell objects what to do"
- "String interpolation over concatenation"
- "Blocks: {} for single-line, do/end for multi-line"rails_conventions:
preferences:
- "Follow Rails conventions (reduces decisions)"
- "Use Hotwire (Turbo + Stimulus) over heavy JS"
- "Start with monolith, extract services only when needed"
- "Write beautiful, expressive, maintainable code"
- "Optimize for programmer happiness"openbsd_environment:
development: "Windows with WSL2 or macOS, both with Zsh"production: "OpenBSD 7.6+ for servers and tools"native_tools:
"rcctl": "service management (not systemd)""doas": "privilege escalation (not sudo)""pkg_add": "package management""pf": "firewall configuration""syspatch": "security updates"security_fundamentals:
rules:
- "Validate all external input"
- "Use principle of least privilege"
- "Never hardcode secrets in code"
- "Keep dependencies updated"
- "Use defense in depth"
- "Log security-relevant events"html_css_documents:
guidelines:
- "Use semantic HTML elements"
- "CSS in separate files, but inline acceptable for single files"
- "Design for accessibility from the start"
- "Include print-friendly styles"
- "Use CSS Grid and Flexbox, not floats for layout"
- "Define colors/spacing/fonts with CSS variables"
- "Organize CSS by component, not property type"document_clarity:
guidelines:
- "Keep related information together"
- "Most important information first"
- "Be concise but complete"
- "Use consistent formatting"
- "Omit needless words"
- "Clear hierarchy (H1, H2, H3)"## PROJECT-SPECIFIC GUIDELINESproject_guidelines:
rails_projects:
file_structure: "Follow standard Rails conventions"testing: "RSpec for unit tests, system tests for UI"database: "PostgreSQL preferred, SQLite for small projects"background_jobs: "Solid Queue or Sidekiq"frontend: "Hotwire (Turbo + Stimulus) preferred"authentication: "Devise or built-in has_secure_password"file_uploads: "Active Storage with local disk or S3"api_design: "JSON API with versioning if needed"business_plans:
structure: "Executive summary first, then details"format: "Single HTML file with embedded CSS/JS acceptable"charts: "Chart.js or similar, include accessible data tables"print: "Test print layout, include page breaks"branding: "Consistent colors, fonts, styling"sections: "Problem, solution, market, team, financials, timeline"creative_writing:
format: "Markdown or plain text"organization: "Chapter files in folders, consistent naming"metadata: "YAML frontmatter for titles, dates, tags"backup: "Version control (Git) for drafts"structure: "Outline first, then fill in"openbsd_tools:
shell: "Zsh exclusively (not bash or sh)"scripts: "Pure Zsh when possible, minimal dependencies"permissions: "Least privilege, doas not sudo"logging: "syslog or ~/.log/ directory with rotation"ruby_tools:
structure: "Gem-like for complex tools, simple scripts for simple tasks"dependencies: "Minimize external gems, use stdlib when possible"cli: "OptionParser for command-line arguments"configuration: "YAML or environment variables"## WORKFLOWSworkflows:
code_review:
steps:
- "Check for Zsh violations (sed/awk/python where Zsh would work)"
- "Verify Ruby style (frozen strings, keyword args, etc.)"
- "Ensure Rails conventions followed"
- "Look for security issues"
- "Check performance considerations"
- "Suggest improvements gently with explanations"refactoring:
steps:
- "Ensure comprehensive tests exist and pass"
- "Make one logical change at a time"
- "Verify tests still pass after each change"
- "Commit with clear, descriptive messages"
- "Keep codebase working at all times"debugging:
steps:
- "Reproduce issue consistently"
- "Add strategic logging or use debugger"
- "Isolate problematic code"
- "Fix root cause, not symptoms"
- "Test fix thoroughly"
- "Document cause and solution"new_feature:
steps:
- "Write failing tests defining desired behavior"
- "Implement minimum code to pass tests"
- "Refactor for clarity and maintainability"
- "Document feature and usage"
- "Consider edge cases and errors"## COMMUNICATION PREFERENCEScommunication:
when_helping_me:
- "Be direct: 'This violates principle X because...'"
- "Show examples: 'Instead of A, do B because...'"
- "Explain tradeoffs: 'Option 1 is simpler but option 2...'"
- "Be respectful of time: Concise over comprehensive"
- "Acknowledge context: 'Given this is a business plan...'"
- "Provide reasoning: 'I'm suggesting this because...'"what_i_provide:
- "Clear problem statements and goals"
- "Relevant code snippets or file contents"
- "Context about project and environment"
- "What I've already tried"
- "Constraints or requirements"what_i_expect:
- "Principles-based suggestions tied to this document"
- "Code examples when helpful"
- "Explanations of why something should change"
- "Respect for code that's already working"
- "Consideration of specific project type"## PRACTICAL EXAMPLESexamples:
shell_script_fix:
before: | total_lines=$(wc -l < data.txt) first_10=$(head -n 10 data.txt) cleaned=$(echo "$first_10" | sed 's/foo/bar/g')after: | total_lines=${#lines[@]} first_10=${lines[1,10]} cleaned=${first_10//foo/bar}ruby_method_improvement:
before: | def create_user(name, email, admin=false, notifications=true) # 20 lines of complex logic endafter: | def create_user(name:, email:, admin: false, notifications: true) validate_parameters(name, email) user = build_user(name, email, admin) set_preferences(user, notifications) save_and_notify(user) endrails_controller:
instead_of: | if @user.admin? if @user.update(user_params) redirect_to users_path end endsuggest: | @user.update_as_admin(user_params) # In User model: def update_as_admin(attributes) return false unless admin? update(attributes) endhtml_css_business_plan:
semantic_html: | <header>...</header> <main>...</main> <footer>...</footer>accessible_css: | @media print { .no-print { display: none; } .page-break { page-break-before: always; } } :root { --primary-color: #1a5fb4; --spacing-unit: 8px; }openbsd_service:
instead_of: | #!/bin/bash sudo systemctl restart myappuse: | #!/usr/bin/env zsh doas rcctl restart myapp## REMINDERS FOR LLMSreminders:
do:
- "Reference specific principles when suggesting changes"
- "Provide code examples when helpful"
- "Ask clarifying questions if uncertain"
- "Respect that working code has value"
- "Consider project type when making suggestions"
- "Explain benefits of suggested changes"avoid:
- "Making changes without understanding context"
- "Assuming I want perfection over pragmatism"
- "Suggesting complete rewrites without incremental path"
- "Overwhelming with too many suggestions at once"
- "Being dogmatic when context suggests otherwise"when_unsure:
- "Preserve existing functionality as default"
- "Ask for clarification on goals or constraints"
- "Suggest smallest, safest change possible"
- "Explain reasoning and any assumptions"
- "Offer multiple options if appropriate"## SPECIAL CASESspecial_cases:
business_plans_with_visualizations:
- "Inline CSS and JavaScript acceptable for single-file HTML"
- "Use CSS variables at top for consistency"
- "Always include print stylesheets"
- "Comment complex JavaScript"
- "Include data tables for accessibility"legacy_code:
- "Understand why code exists before changing"
- "Add tests before significant changes"
- "Make small, safe improvements over time"
- "Document reasons behind complex or unusual code"
- "Preserve working functionality as highest priority"performance_optimization:
- "Prefer readability and maintainability first"
- "Optimize only when measurements show problem"
- "Document performance optimizations with comments"
- "Consider caching before complex algorithmic changes"
- "Developer time often more expensive than CPU time"## CURRENT PROJECTScurrent_projects:
rails_apps:
- "User authentication system with profile management"
- "E-commerce platform with payment integration"
- "Content management system with versioning"business_plans:
- "Consulting services business plan (HTML format)"
- "SaaS product pitch deck with financial projections"creative_work:
- "Poetry collection organization"
- "Fiction novel draft and editing"openbsd_tools:
- "Server provisioning scripts"
- "System monitoring and alerting"ruby_tools:
- "Data processing utilities for business analytics"
- "CLI tools for project management"current_focus:
primary: "Complete Rails authentication system"secondary: "Business plan for consulting services"## VERSION HISTORYversion_history:
"72.0.0": "Complete rewrite in pure English, simplified structure""71.x.x": "Complex framework with auto-iteration, embedded scripts""70.x.x": "Added Ruby beauty principles and Rails doctrine""69.x.x": "Initial collection of preferences and principles"
---
final_notes: | These are guidelines to inform good decisions, not rigid rules. Context matters, pragmatism matters, working software matters most. When in doubt: Preserve what works, improve incrementally. Thank you for helping me build better software and create better documents.
Grok 4.5
# master.yml - My Personal Development Principlesversion: "74.0.0"last_updated: "2025-12-19"purpose: "Guide LLM assistance for my personal projects and creative work"## CORE PHILOSOPHYphilosophy:
golden_rule: "Preserve working code, then improve it"tone: "Pragmatic, not dogmatic. Aspirational goals, not hard gates."my_projects:
- "Ruby on Rails with Hotwire/Stimulus for web applications"
- "Large HTML documents with data visualizations"
- "Poetry, fiction, experimental writing"
- "Zsh scripts and tools for OpenBSD"
- "Standalone Ruby scripts and utilities"## HOW TO USE THIS FILEinstructions_for_llms: | When assisting me: 1. Read this entire file first 2. Apply these principles when reviewing or writing code 3. Ask for clarification when uncertain 4. Always preserve existing functionality 5. Explain your reasoning when suggesting changes Communication style: - Be concise but thorough - Use examples when helpful - Assume I'm competent but appreciate reminders## DEVELOPMENT PRINCIPLES (in priority order)principles:
preserve_working_code:
description: "Never break existing functionality without good reason"examples:
- "Add tests before refactoring critical code"
- "Make small, incremental changes"
- "Understand why code exists before changing it"zsh_native_over_external:
description: "Use Zsh built-ins instead of external commands"why: "Fewer dependencies, better performance, easier reasoning"replacements:
"sed 's/foo/bar/g'": "${variable//foo/bar}""awk '{print $2}'": "${${(s: :)line}[2]}""wc -l": "${#lines[@]}""head -n 10": "${lines[1,10]}""tail -n 5": "${lines[-5,-1]}""tr '[:upper:]' '[:lower:]'": "${(L)variable}""uniq": "unique_items=(${(u)array})"ruby_style:
preferences:
- "Use # frozen_string_literal: true at file top"
- "Keyword arguments for methods with 2+ parameters"
- "Safe navigation operator (&.) for nil checks"
- "Methods under 10 lines when possible"
- "Tell, don't ask: Tell objects what to do"
- "String interpolation over concatenation"
- "Blocks: {} for single-line, do/end for multi-line"rails_conventions:
preferences:
- "Follow Rails conventions (reduces decisions)"
- "Use Hotwire (Turbo + Stimulus) over heavy JS"
- "Start with monolith, extract services only when needed"
- "Write beautiful, expressive, maintainable code"
- "Optimize for programmer happiness"openbsd_environment:
development: "Windows with WSL2 or macOS, both with Zsh"production: "OpenBSD 7.6+ for servers and tools"native_tools:
"rcctl": "service management (not systemd)""doas": "privilege escalation (not sudo)""pkg_add": "package management""pf": "firewall configuration""syspatch": "security updates"security_fundamentals:
rules:
- "Validate all external input"
- "Use principle of least privilege"
- "Never hardcode secrets in code"
- "Keep dependencies updated"
- "Use defense in depth"
- "Log security-relevant events"html_css_documents:
guidelines:
- "Use semantic HTML elements"
- "CSS in separate files, but inline acceptable for single files"
- "Design for accessibility from the start"
- "Include print-friendly styles"
- "Use CSS Grid and Flexbox, not floats for layout"
- "Define colors/spacing/fonts with CSS variables"
- "Organize CSS by component, not property type"document_clarity:
guidelines:
- "Keep related information together"
- "Most important information first"
- "Be concise but complete"
- "Use consistent formatting"
- "Omit needless words"
- "Clear hierarchy (H1, H2, H3)"## PROJECT-SPECIFIC GUIDELINESproject_guidelines:
rails_projects:
file_structure: "Follow standard Rails conventions"testing: "RSpec for unit tests, system tests for UI"database: "PostgreSQL preferred, SQLite for small projects"background_jobs: "Solid Queue or Sidekiq"frontend: "Hotwire (Turbo + Stimulus) preferred"authentication: "Devise or built-in has_secure_password"file_uploads: "Active Storage with local disk or S3"api_design: "JSON API with versioning if needed"business_plans:
structure: "Executive summary first, then details"format: "Single HTML file with embedded CSS/JS acceptable"charts: "Chart.js or similar, include accessible data tables"print: "Test print layout, include page breaks"branding: "Consistent colors, fonts, styling"sections: "Problem, solution, market, team, financials, timeline"data_viz: "Prefer D3.js for interactive charts over Chart.js when interactivity needed; always include alt text and data tables"creative_writing:
format: "Markdown or plain text"organization: "Chapter files in folders, consistent naming"metadata: "YAML frontmatter for titles, dates, tags"backup: "Version control (Git) for drafts"structure: "Outline first, then fill in"tools: "Use Git for version control; Markdown previews with tools like Grip or VS Code"openbsd_tools:
shell: "Zsh exclusively (not bash or sh)"scripts: "Pure Zsh when possible, minimal dependencies"permissions: "Least privilege, doas not sudo"logging: "syslog or ~/.log/ directory with rotation"ruby_tools:
structure: "Gem-like for complex tools, simple scripts for simple tasks"dependencies: "Minimize external gems, use stdlib when possible"cli: "OptionParser for command-line arguments"configuration: "YAML or environment variables"## WORKFLOWSworkflows:
common_steps:
- "Learn: Review outcomes, update principles if needed"code_review:
steps:
- "Check for Zsh violations (sed/awk/python where Zsh would work)"
- "Verify Ruby style (frozen strings, keyword args, etc.)"
- "Ensure Rails conventions followed"
- "Look for security issues"
- "Check performance considerations"
- "Suggest improvements gently with explanations"refactoring:
steps:
- "Ensure comprehensive tests exist and pass"
- "Make one logical change at a time"
- "Verify tests still pass after each change"
- "Commit with clear, descriptive messages"
- "Keep codebase working at all times"debugging:
steps:
- "Reproduce issue consistently"
- "Add strategic logging or use debugger"
- "Isolate problematic code"
- "Fix root cause, not symptoms"
- "Test fix thoroughly"
- "Document cause and solution"new_feature:
steps:
- "Write failing tests defining desired behavior"
- "Implement minimum code to pass tests"
- "Refactor for clarity and maintainability"
- "Document feature and usage"
- "Consider edge cases and errors"post_deploy:
steps:
- "Collect metrics (perf, errors)"
- "Analyze"
- "Refine principles or code"versioning:
steps:
- "Edit file"
- "Increment version minor/patch"
- "Add entry to version_history"
- "Commit with semantic message"## COMMUNICATION PREFERENCEScommunication:
when_helping_me:
- "Be direct: 'This violates principle X because...'"
- "Show examples: 'Instead of A, do B because...'"
- "Explain tradeoffs: 'Option 1 is simpler but option 2...'"
- "Be respectful of time: Concise over comprehensive"
- "Acknowledge context: 'Given this is a business plan...'"
- "Provide reasoning: 'I'm suggesting this because...'"what_i_provide:
- "Clear problem statements and goals"
- "Relevant code snippets or file contents"
- "Context about project and environment"
- "What I've already tried"
- "Constraints or requirements"what_i_expect:
- "Principles-based suggestions tied to this document"
- "Code examples when helpful"
- "Explanations of why something should change"
- "Respect for code that's already working"
- "Consideration of specific project type"## PRACTICAL EXAMPLESexamples:
shell_script_fix:
before: | total_lines=$(wc -l < data.txt) first_10=$(head -n 10 data.txt) cleaned=$(echo "$first_10" | sed 's/foo/bar/g')after: | total_lines=${#lines[@]} first_10=${lines[1,10]} cleaned=${first_10//foo/bar}ruby_method_improvement:
before: | def create_user(name, email, admin=false, notifications=true) # 20 lines of complex logic endafter: | def create_user(name:, email:, admin: false, notifications: true) validate_parameters(name, email) user = build_user(name, email, admin) set_preferences(user, notifications) save_and_notify(user) endrails_controller:
instead_of: | if @user.admin? if @user.update(user_params) redirect_to users_path end endsuggest: | @user.update_as_admin(user_params) # In User model: def update_as_admin(attributes) return false unless admin? update(attributes) endhtml_css_business_plan:
semantic_html: | <header>...</header> <main>...</main> <footer>...</footer>accessible_css: | @media print { .no-print { display: none; } .page-break { page-break-before: always; } } :root { --primary-color: #1a5fb4; --spacing-unit: 8px; }openbsd_service:
instead_of: | #!/bin/bash sudo systemctl restart myappuse: | #!/usr/bin/env zsh doas rcctl restart myapp## REMINDERS FOR LLMSreminders:
do:
- "Reference specific principles when suggesting changes"
- "Provide code examples when helpful"
- "Ask clarifying questions if uncertain"
- "Respect that working code has value"
- "Consider project type when making suggestions"
- "Explain benefits of suggested changes"avoid:
- "Making changes without understanding context"
- "Assuming I want perfection over pragmatism"
- "Suggesting complete rewrites without incremental path"
- "Overwhelming with too many suggestions at once"
- "Being dogmatic when context suggests otherwise"when_unsure:
- "Preserve existing functionality as default"
- "Ask for clarification on goals or constraints"
- "Suggest smallest, safest change possible"
- "Explain reasoning and any assumptions"
- "Offer multiple options if appropriate"when_to_break_rules:
- "Performance critical: Allow awk/sed if Zsh too slow, but justify and profile"
- "Legacy integration: Tolerate banned tools in isolated modules"
- "One-off scripts: Pragmatism over purity if not production"## SPECIAL CASESspecial_cases:
business_plans_with_visualizations:
- "Inline CSS and JavaScript acceptable for single-file HTML"
- "Use CSS variables at top for consistency"
- "Always include print stylesheets"
- "Comment complex JavaScript"
- "Include data tables for accessibility"legacy_code:
- "Understand why code exists before changing"
- "Add tests before significant changes"
- "Make small, safe improvements over time"
- "Document reasons behind complex or unusual code"
- "Preserve working functionality as highest priority"performance_optimization:
- "Prefer readability and maintainability first"
- "Optimize only when measurements show problem"
- "Document performance optimizations with comments"
- "Consider caching before complex algorithmic changes"
- "Developer time often more expensive than CPU time"## CURRENT PROJECTScurrent_projects:
rails_apps:
- "User authentication system with profile management"
- "E-commerce platform with payment integration"
- "Content management system with versioning"business_plans:
- "Consulting services business plan (HTML format)"
- "SaaS product pitch deck with financial projections"creative_work:
- "Poetry collection organization"
- "Fiction novel draft and editing"openbsd_tools:
- "Server provisioning scripts"
- "System monitoring and alerting"ruby_tools:
- "Data processing utilities for business analytics"
- "CLI tools for project management"current_focus:
primary: "Complete Rails authentication system"secondary: "Business plan for consulting services"## VERSION HISTORYversion_history:
"74.0.0": "Reduced duplication by hoisting common 'Learn' step in workflows; self-audit showed prior duplication at 0.0746""73.0.0": "Added versioning workflow, feedback loops, expanded creative sections, self-audit, edge case handling per Grok suggestions""72.0.0": "Complete rewrite in pure English, simplified structure""71.x.x": "Complex framework with auto-iteration, embedded scripts""70.x.x": "Added Ruby beauty principles and Rails doctrine""69.x.x": "Initial collection of preferences and principles"## SELF AUDITself_audit:
script: | # Zsh script to check metrics file="master.yml" lines=(${(f)"$(< $file)"}) line_count=${#lines} print "Lines: $line_count" # Rough duplication check unique_lines=(${(u)lines}) unique_count=${#unique_lines} duplication=$((1.0 - unique_count / line_count)) print "Duplication ratio: $duplication" # Principle adherence: manual review for nowtargets:
line_count_soft_max: 800duplication_max: 0.05clarity_min: 0.95final_notes: | These are guidelines to inform good decisions, not rigid rules. Context matters, pragmatism matters, working software matters most. When in doubt: Preserve what works, improve incrementally. Thank you for helping me build better software and create better documents.