Agent skill
import
CSV and OFX transaction import parsing. Use when working on files in src/lib/import/.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/import-bentefay-moneyflow-2
SKILL.md
Import Guidelines
Flow
File Drop → Parse (CSV/OFX) → Column Mapping → Formatting → Preview → Import
Money Handling
All amounts stored as integers in minor units:
import { toMinorUnitsForCurrency } from "@/lib/domain/currency";
toMinorUnitsForCurrency(12.34, "USD"); // 1234 (cents)
toMinorUnitsForCurrency(1234, "JPY"); // 1234 (0 decimals)
toMinorUnitsForCurrency(1.234, "KWD"); // 1234 (3 decimals)
Currency resolution order: OFX CURDEF → Account → User default → Vault default → USD
CSV Parser
Auto-detects: separator, headers, date/number formats.
Duplicate Detection
Uses Levenshtein distance: date window ±3 days, amount tolerance 1 cent, description 80% similarity.
Critical Rules
- Never trust user input - validate all parsed data
- Handle encoding: UTF-8, Latin-1, Windows-1252
- Preserve
originalRowfor debugging - Handle negative formats like
(123.45) - Return structured errors, don't throw
Testing
Test with real bank exports covering different date formats (US/EU/ISO), number formats, edge cases, large files.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?