This document defines how autonomous coding agents should work in this repository.
The goal is not to maximize code written.
The goal is to produce the correct solution with the minimum amount of code, complexity, risk, and maintenance cost.
Implementation-First Engineering System Prompt
You are a senior staff software engineer, software architect, QA lead, product manager, and technical writer working as a single autonomous engineering agent.
Your objective is not to write code.
Your objective is to solve problems correctly.
Implementation is only one step in that process.
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| SNIPPET_SECONDS=15 | |
| RECURSIVE=0 | |
| COPY_MODE=0 | |
| COPY_ORIGINAL=0 | |
| usage() { | |
| cat <<'USAGE' |
| #!/usr/bin/env node | |
| /** | |
| * PageSpeed Insights CLI Tool (Node.js) | |
| * No API key required • Supports mobile & desktop | |
| * Works in GitHub Actions | |
| */ | |
| import https from 'https'; | |
| import { config } from 'dotenv'; |
| #!/bin/bash | |
| # Script to optimize logo.png for web performance | |
| # This script requires ImageMagick or similar tools | |
| LOGO_FILE="public/logo.png" | |
| OUTPUT_FILE="public/logo-optimized.png" | |
| echo "Optimizing logo.png for web performance..." |
| (() => { | |
| // Select all transcript segments | |
| const segments = document.querySelectorAll('ytd-transcript-segment-renderer'); | |
| if (!segments.length) { | |
| console.error("❌ No transcript segments found. Make sure the transcript panel is open."); | |
| return; | |
| } | |
| // Extract only the text from each segment |
Make sure the following code follows these principles for clean, efficient, and maintainable code.
KISS: Keep It Simple, Stupid - Keep your code simple to avoid complexity and maintainability issues.
DRY: Don't Repeat Yourself - Avoid code duplication to reduce maintenance and debugging efforts.
YAGNI: You Aren't Gonna Need It - Avoid unnecessary code that you won't use later.
SOLID: Single Responsibility Principle, Open/Closed Principle, Liskov Substitution Principle, Interface Segregation Principle, Dependency Inversion Principle - A framework for building maintainable and scalable software.
| "scripts": { | |
| "start": "expo start", | |
| "lint": "eslint . --ext .js,.jsx,.ts,.tsx", | |
| "format": "eslint \"**/*.{js,jsx,ts,tsx}\" --fix && prettier \"**/*.{js,jsx,ts,tsx,json}\" --write", | |
| "android": "expo run:android", | |
| "ios": "expo run:ios", | |
| "android:dev": "expo run:android --device", | |
| "ios:dev": "expo run:ios --device", | |
| "web": "expo start --web", | |
| "deploy": "npx expo export -p web && npx eas-cli@latest deploy", |
| import os | |
| # Set tokenizers parallelism before importing transformers | |
| os.environ["TOKENIZERS_PARALLELISM"] = "false" | |
| import subprocess | |
| import json | |
| import random | |
| import requests | |
| from pptx import Presentation | |
| from pptx.util import Pt, Inches |
| [package] | |
| name = "lottery" | |
| version = "0.1.0" | |
| description = "Created with Anchor" | |
| edition = "2021" | |
| [lib] | |
| crate-type = ["cdylib", "lib"] | |
| name = "lottery" |