fegone/claude-agent-starter/investments
- community
Checking that the SKILL.md file is still in the repository.
Manage investment securities lifecycle including purchase, mark-to-market, and sale. Use when user wants to (1) process investment transactions from source files, (2) run the interactive workflow with guided questions, (3) execute scripts directly, or (4) understand AFS vs Trading accounting treatment and account mappings.
Install
npx vskill@latest install fegone/claude-agent-starter/investmentsSKILL.md
Investments Module
Manage investment securities lifecycle: purchase, mark-to-market, and sale.
Interactive Workflow
When user invokes /investments or asks to process securities:
- First, check for source files:
> "Let me check what source data is available in data/source/investments/"
Run: ls -la data/source/investments/
- If source files exist, ask:
> "I found these files: [list]. Which file contains the data you want to process?"
- If no source files, ask:
> "No source files found in data/source/investments/. Would you like to: > - Place a CSV/PDF file there and try again > - Enter transaction details manually"
- Then ask operation:
> What would you like to do? > 1. Purchase - Record securities acquisition > 2. Mark-to-Market - Fair value adjustment > 3. Sell - Record securities sale > 4. Rollforward - Generate unrealized G/L rollforward > 5. Status - View current holdings
Source Data Location
Users should place their securities data files in:
Supported formats: CSV, PDF (broker statements, trade confirmations)
View current securities register:
Required User Inputs
Before generating any journal entries or reports, you MUST obtain these from the user:
- Report Period End Date - Always ask the user; never assume a date
- Transaction Dates - Must be provided for each purchase, sale, or FMV adjustment
- Security Classification - AFS or Trading (affects accounting treatment)
Accounting Policies
- AFS Securities: Unrealized G/L recorded in OCI (equity), not P&L
- Trading Securities: Unrealized G/L recorded directly in P&L
- Realized G/L: Recognized immediately at sale date
- Cost Basis: User must provide cost basis on sales (FIFO, LIFO, or specific ID)
Security Classifications
Available for Sale (AFS)
- Unrealized gains/losses go to OCI (Other Comprehensive Income)
- Only affects equity, not P&L
- When sold, reclassified to realized gain/loss
Trading Securities
- Unrealized gains/losses go directly to P&L
- Mark-to-market affects income statement
Reference Documents
| Topic | Reference | |
|---|---|---|
| GL account codes | references/account_mapping.md | |
| Rollforward report format | references/rollforward_format.md |
Scripts
XLSX Post-Processing (MANDATORY)
After generating ANY XLSX files, Claude MUST run recalc.py to recalculate formulas and verify zero errors:
Example:
Report results to user:
- If
status: success→ "Generated [file] with X formulas, 0 errors" - If
status: errors_found→ Show error details and fix before delivering
DO NOT deliver XLSX files without running recalc.py first.
1. Purchase
Record securities acquisition.
Parameters:
--name: Security name--date: Purchase date (YYYY-MM-DD)--shares: Number of shares--price: Price per share--security-type: AFS (Available for Sale) or Trading--output-dir: Output directory (default: data/output/investments)
Journal Entry:
2. Mark to Market (FMV Adjustment)
Record period-end fair value adjustment.
Parameters:
--name: Security name (must exist in holdings)--date: Valuation date (YYYY-MM-DD)--fair-value: Current fair market value--output-dir: Output directory (default: data/output/investments)
Journal Entry (AFS Gain):
Journal Entry (Trading Gain):
3. Sale
Record securities sale with realized gain/loss.
Parameters:
--name: Security name--date: Sale date (YYYY-MM-DD)--shares: Number of shares sold--cost-basis: Total cost basis of shares sold--proceeds: Total sale proceeds--security-type: AFS or Trading--output-dir: Output directory (default: data/output/investments)
Journal Entry (Gain):
XLSX Output Structure:
The sale XLSX includes a full gain/loss calculation with formulas:
4. Unrealized G/L Rollforward
Generate a rollforward report showing movement in cost basis, unrealized gains/losses, and fair value. Also generates a consolidated journal with all period transactions.
Parameters:
--report-date: Period end date (YYYY-MM-DD) - required--period-begin: Period begin date (YYYY-MM-DD) - alternative to --period-type--period-type:quarterly,half-year, orannual- auto-calculates begin date--output-dir: Output directory (default: data/output/investments)
Output Files:
securities_rollforward_<date>.csv/.xlsx- Rollforward reportjournal_<date>.csv/.xlsx- Consolidated journal entries (all purchases, sales, FMV adjustments)
See references/rollforward_format.md for the industry-standard report format.
Output Files
| File | Description | |
|---|---|---|
securities_purchase_<security>_<date>.csv/.xlsx | Purchase entry | |
securities_sale_<security>_<date>.csv/.xlsx | Sale entry | |
fmv_adjustment_<security>_<date>.csv/.xlsx | FMV adjustment | |
securities_rollforward_<date>.csv/.xlsx | Unrealized G/L rollforward | |
journal_<date>.csv/.xlsx | Consolidated journal entries | |
securities_register.json | Securities tracking |
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/investments/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/fegone/claude-agent-starter/investments)