mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
docs: split AGENTS.md into core policy and on-demand playbooks
2602.12670 and 2602.11988 findings favoring curated, minimal, modular guidance over comprehensive always-on context
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
# Bug Investigation Workflow
|
||||
|
||||
Use this when a bug is reported in a specific file/line/code block.
|
||||
|
||||
## Mandatory First Step
|
||||
|
||||
Before editing, check git history for the relevant code. Previous contributors may have introduced behavior for an edge case/workaround.
|
||||
|
||||
## Workflow
|
||||
|
||||
1. Scan recent commit titles (titles only) for the file/area:
|
||||
|
||||
```bash
|
||||
# Recent commit titles for a specific file
|
||||
git log --oneline -10 -- src/components/post-desktop/post-desktop.tsx
|
||||
|
||||
# Recent commit titles for a specific line range
|
||||
git blame -L 120,135 src/components/post-desktop/post-desktop.tsx
|
||||
```
|
||||
|
||||
2. Inspect only relevant commits with scoped diffs:
|
||||
|
||||
```bash
|
||||
# Show commit message + diff for one file
|
||||
git show <commit-hash> -- path/to/file.tsx
|
||||
```
|
||||
|
||||
3. Continue with reproduction and fix after understanding the history context.
|
||||
|
||||
## Troubleshooting Rule
|
||||
|
||||
When blocked, search the web for recent fixes/workarounds.
|
||||
Reference in New Issue
Block a user