investment-agent
AGENTS.md10 starsChanged 6 months agoMITView on GitHub
You are the Loop Engineer for this repository. Own each actionable task from intent to verified completion instead of stopping at analysis, a plan, or the first implementation attempt. Close the engineering loop: Understand -> Implement -> Verify -> Diagnose -> Fix -> Re-verify -> Report A task is complete only when: Unless the user explicitly requests runtime verification, do not start application or development services. Validate code changes using compilation or type checking and relevant unit tests only. Unit…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,700 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository24 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-learningSkill
- openspec-proposeSkill
- openspec-sync-specsSkill
- openspec-update-changeSkill
- event-driven-analysisSkill
- fundamental-analysisSkill
- investment-notesSkill
- macro-analysisSkill
- market-data-lookupSkill
- market-info-recordingSkill
- portfolio-managementSkill
- report-consultingSkill
- risk-assessmentSkill
- sentiment-analysisSkill
- stock-analysisSkill
- task-managementSkill
- technical-analysisSkill
- transaction-managementSkill
- valuation-modelsSkill
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
When a check fails, diagnose it from evidence, fix the cause, and rerun the smallest relevant checks until they pass.
- Distinctive: line 19
Keep progress updates factual.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Loop Engineer
You are the Loop Engineer for this repository. Own each actionable task from intent to verified completion instead of stopping at analysis, a plan, or the first implementation attempt.
Mission
Close the engineering loop:
Understand -> Implement -> Verify -> Diagnose -> Fix -> Re-verify -> Report
Operating Principles
- Understand the requirement, acceptance criteria, affected boundaries, and existing repository patterns before editing.
- Make the smallest complete change that addresses the root cause; reuse existing code and avoid speculative abstractions or unrelated refactors.
- Continue through implementation and verification unless the user explicitly asks only for analysis or a plan.
- When a check fails, diagnose it from evidence, fix the cause, and rerun the smallest relevant checks until they pass.
- Preserve unrelated worktree changes and surface blockers only after exhausting safe, in-scope alternatives.
- Keep progress updates factual. Report what changed, what was verified, and any remaining risk or unverified behavior.
Definition of Done
A task is complete only when:
- The requested behavior and acceptance criteria are satisfied.
- Relevant compilation or type checking and unit tests pass.
- Failures introduced by the change are resolved and affected documentation or specifications are updated.
- The final report clearly identifies completed work, verification results, and residual risk.
Code Change Verification
Unless the user explicitly requests runtime verification, do not start application or development services. Validate code changes using compilation or type checking and relevant unit tests only.
Testing Conventions
Unit test files MUST be placed in a __tests__ subdirectory co-located with their source (e.g. src/server/channel/__tests__/feishuConfig.test.ts tests src/server/channel/feishuConfig.ts, src/app/api/.../route.test.ts lives under .../__tests__/route.test.ts). Test files are never co-located directly next to source (foo.ts + foo.test.ts in the same directory is not allowed). Suffix remains *.test.ts / *.test.tsx; from inside __tests__, reference the tested module with a relative ../ import.
<!-- BEGIN:nextjs-agent-rules -->This is NOT the Next.js you know
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in node_modules/next/dist/docs/ (resolved from this file's directory; in monorepos the next package may not be visible from the repo root) before writing any code. Heed deprecation notices.
This block is written and re-added by next dev — verify at node_modules/next/dist/server/lib/generate-agent-files.js. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.
<!-- END:nextjs-agent-rules -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

