From 546993553609ba0dd75d93708420b4402835b118 Mon Sep 17 00:00:00 2001 From: Prabhat Ranjan Date: Sat, 18 Apr 2026 19:06:48 +1000 Subject: [PATCH] docs: update AGENTS.md to reference org-wide standards --- AGENTS.md | 108 ++++++++++++------------------------------------------ 1 file changed, 23 insertions(+), 85 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index c33699f5..67e2983c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,101 +1,39 @@ -# Agent Instructions - Branch Protection Workflow +# Agent Instructions - Folio -## ⚠️ IMPORTANT: This repository has branch protection enabled +## ⚠️ READ FIRST: Org-Wide Agent Guide -Direct pushes to `main`/`master` are **BLOCKED**. All changes must go through -Pull Requests. +This repo follows Sensible Analytics org-wide standards. -## Required Workflow +**Fetch and follow the org-wide AGENTS.md:** +1. **Local (preferred)**: `~/Business/sensibleAnalytics/.github/AGENTS.md` +2. **Remote**: `https://github.com/Sensible-Analytics/.github/blob/main/AGENTS.md` -### Making Changes +The org-wide guide contains: +- Branch protection rules +- Workflow instructions +- Skill mapping +- Testing standards -1. **Create a feature branch** (never work on main/master): +## 📋 Repo-Specific Notes - ```bash - git checkout -b feat/your-feature-name - # or - git checkout -b fix/issue-description - ``` +Folio is a portfolio tracker with Australian bank statement import. -2. **Make your changes and commit**: +### Tech Stack - ```bash - git add . - git commit -m "feat: descriptive commit message" - ``` +- Framework: Tauri/Rust +- Frontend: React/TypeScript +- Deployment: Vercel -3. **Push the branch**: - - ```bash - git push origin feat/your-feature-name - ``` - -4. **Create a Pull Request** using the GitHub CLI: - - ```bash - gh pr create --title "feat: Add new feature" --body "Description of changes" - ``` - -5. **Merge after review**: - ```bash - gh pr merge --squash --delete-branch - ``` - -### Branch Naming Conventions - -- `feat/` - New features -- `fix/` - Bug fixes -- `docs/` - Documentation changes -- `refactor/` - Code refactoring -- `test/` - Test additions/changes -- `chore/` - Maintenance tasks - -### What You MUST NOT Do - -- ❌ Never push directly to `main` or `master` -- ❌ Never use `git push --force` on protected branches -- ❌ Never delete the `main` or `master` branch -- ❌ Never commit directly without a PR - -### Git Configuration - -When working with this repository, ensure your git config includes: +### Key Commands ```bash -git config user.name "Your Name" -git config user.email "your.email@example.com" -``` - -## Security Considerations - -- All changes go through PR review -- No force pushes allowed -- Branch deletion is prevented -- CI checks should pass before merge - -## Quick Reference - -```bash -# Start new work -git checkout -b feat/new-feature - -# After making changes -git add . && git commit -m "feat: add new feature" -git push origin feat/new-feature - -# Create PR -gh pr create --title "feat: Add new feature" --body "What it does" +# Dev +npm run tauri dev -# After PR approved -gh pr merge --squash --delete-branch - -# Back to main -git checkout main && git pull +# Build +npm run tauri build ``` --- -## 📄 Governance Documents - -- [Code of Conduct](docs/CODE_OF_CONDUCT.md) -- [Security Policy](docs/SECURITY.md) +*For full org-wide rules, see: ~/Business/sensibleAnalytics/.github/AGENTS.md* \ No newline at end of file