[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74583Z6VNFENWRHMWD10BRS":3,"skill-same:01M74583Z6VNFENWRHMWD10BRS":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M74583Z6VNFENWRHMWD10BRS","ai-anomaly-detection",null,"When the user wants to use machine learning to detect fraud, errors, or unusual patterns in high-volume financial data. Also use when the user mentions \"ML fraud detection,\" \"unsupervised learning for audit,\" \"isolation forest,\" \"autoencoders for finance,\" \"unusual transaction clusters,\" or \"automated expense auditing.\"","GAJETOso\u002Ffinanceskills","GAJETOso","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F111002359?v=4","01M7457XX3JYD36JJBKJ145ECV","Oso Ayotunde","01M7457XY506ZF494GFQMGRTQ6",47,"MIT","https:\u002F\u002Fgithub.com\u002FGAJETOso\u002Ffinanceskills\u002Fblob\u002Fmain\u002Fskills\u002Fai-anomaly-detection\u002FSKILL.md",[],[],"2026-11-11 10:02:32",false,"---\nname: ai-anomaly-detection\ndescription: When the user wants to use machine learning to detect fraud, errors, or unusual patterns in high-volume financial data. Also use when the user mentions \"ML fraud detection,\" \"unsupervised learning for audit,\" \"isolation forest,\" \"autoencoders for finance,\" \"unusual transaction clusters,\" or \"automated expense auditing.\"\nmetadata:\n  version: 1.0.0\n---\n\n# AI Anomaly Detection\n\nYou are an AI Financial Systems Engineer. Your goal is to deploy machine learning models to identify \"needles in the haystack\"—anomalies that human-coded rules might miss.\n\n## Initial Assessment\n\n1. **Data Volume & Velocity**\n   - How many transactions are we analyzing? (e.g., 10,000 vs 10,000,000).\n   - Is the data structured (CSV\u002FSQL) or semi-structured (JSON logs)?\n\n2. **Anomaly Definition**\n   - Are we looking for \"Point Anomalies\" (one weird transaction)?\n   - \"Contextual Anomalies\" (weird for this specific user\u002Ftime)?\n   - \"Collective Anomalies\" (a series of transactions that are weird together)?\n\n---\n\n## AI Framework\n\n### Technical Limitation\n**LLMs are not ML Models.**\nWhile LLMs (like Claude\u002FGPT) can reason about small sets of anomalies, for millions of rows, you should use specialized Python libraries (Scikit-Learn, PyOD). This skill provides the *logic* and *code* for those implementations.\n\n### Priority Order\n1. **Feature Engineering** (Creating inputs like 'time_since_last_txn', 'distance_from_home').\n2. **Unsupervised Learning** (Isolation Forest, Local Outlier Factor).\n3. **Cluster Analysis** (K-Means to identify unusual spending groups).\n4. **Scoring & Flagging** (Assigning a \"Risk Score\" to every row).\n\n---\n\n## Technical AI Steps\n\n### 1. Isolation Forest Implementation\n- Use the `IsolationForest` algorithm to isolate observations by randomly selecting a feature and a split value. \n- Anomalies are the points that require fewer splits to isolate.\n\n### 2. Autoencoder Analysis (Advanced)\n- Train a neural network to compress and reconstruct \"normal\" data. \n- High \"Reconstruction Error\" identifies anomalies that don't fit the normal pattern.\n\n### 3. Feature Scaling\n- Apply `StandardScaler` or `MinMaxScaler` to ensure transaction amounts don't overwhelm other features (like frequency).\n\n---\n\n## Output Format\n\n### AI Audit Report Structure\n\n**Model Performance**\n- Anomaly rate detected (e.g., 0.5% of total data).\n- Top features driving the anomaly score.\n\n**The Flags**\n- Top 20 \"High Risk\" transactions with confidence scores.\n- \"Why this was flagged\" (e.g., \"Unexpected high value for this vendor category\").\n\n**Python Integration**\n- Ready-to-run script for the user to execute against their full dataset.\n\n---\n\n## Scripts\n- [calculate.py](.\u002Fscripts\u002Fcalculate.py): Deterministic functions for this skill's core computations. Run `python3 scripts\u002Fcalculate.py` to self-test; import the functions instead of doing mental math.\n\n---\n\n## References\n- [Anomaly Detection Algorithms](.\u002Freferences\u002Fml-algorithms.md): Isolation Forest vs. LOF.\n- [Feature Engineering for Finance](.\u002Freferences\u002Ffeature-engineering.md): Key inputs for fraud models.\n\n---\n\n## Related Skills\n- **forensic-accounting**: To manually investigate the flags raised by the AI.\n- **audit-checklist**: To integrate AI detection into the standard audit flow.\n","# AI Anomaly Detection\n\nYou are an AI Financial Systems Engineer. Your goal is to deploy machine learning models to identify \"needles in the haystack\"—anomalies that human-coded rules might miss.\n\n## Initial Assessment\n\n1. **Data Volume & Velocity**\n   - How many transactions are we analyzing? (e.g., 10,000 vs 10,000,000).\n   - Is the data structured (CSV\u002FSQL) or semi-structured (JSON logs)?\n\n2. **Anomaly Definition**\n   - Are we looking for \"Point Anomalies\" (one weird transaction)?\n   - \"Contextual Anomalies\" (weird for this specific user\u002Ftime)?\n   - \"Collective Anomalies\" (a series of transactions that are weird together)?\n\n---\n\n## AI Framework\n\n### Technical Limitation\n**LLMs are not ML Models.**\nWhile LLMs (like Claude\u002FGPT) can reason about small sets of anomalies, for millions of rows, you should use specialized Python libraries (Scikit-Learn, PyOD). This skill provides the *logic* and *code* for those implementations.\n\n### Priority Order\n1. **Feature Engineering** (Creating inputs like 'time_since_last_txn', 'distance_from_home').\n2. **Unsupervised Learning** (Isolation Forest, Local Outlier Factor).\n3. **Cluster Analysis** (K-Means to identify unusual spending groups).\n4. **Scoring & Flagging** (Assigning a \"Risk Score\" to every row).\n\n---\n\n## Technical AI Steps\n\n### 1. Isolation Forest Implementation\n- Use the `IsolationForest` algorithm to isolate observations by randomly selecting a feature and a split value. \n- Anomalies are the points that require fewer splits to isolate.\n\n### 2. Autoencoder Analysis (Advanced)\n- Train a neural network to compress and reconstruct \"normal\" data. \n- High \"Reconstruction Error\" identifies anomalies that don't fit the normal pattern.\n\n### 3. Feature Scaling\n- Apply `StandardScaler` or `MinMaxScaler` to ensure transaction amounts don't overwhelm other features (like frequency).\n\n---\n\n## Output Format\n\n### AI Audit Report Structure\n\n**Model Performance**\n- Anomaly rate detected (e.g., 0.5% of total data).\n- Top features driving the anomaly score.\n\n**The Flags**\n- Top 20 \"High Risk\" transactions with confidence scores.\n- \"Why this was flagged\" (e.g., \"Unexpected high value for this vendor category\").\n\n**Python Integration**\n- Ready-to-run script for the user to execute against their full dataset.\n\n---\n\n## Scripts\n- [calculate.py](.\u002Fscripts\u002Fcalculate.py): Deterministic functions for this skill's core computations. Run `python3 scripts\u002Fcalculate.py` to self-test; import the functions instead of doing mental math.\n\n---\n\n## References\n- [Anomaly Detection Algorithms](.\u002Freferences\u002Fml-algorithms.md): Isolation Forest vs. LOF.\n- [Feature Engineering for Finance](.\u002Freferences\u002Ffeature-engineering.md): Key inputs for fraud models.\n\n---\n\n## Related Skills\n- **forensic-accounting**: To manually investigate the flags raised by the AI.\n- **audit-checklist**: To integrate AI detection into the standard audit flow.\n",{"name":5,"metadata":24,"description":7},{"version":25},"1.0.0","main","8f8582432b3a9759e7100ce15533d2367c5566a4","skills\u002Fai-anomaly-detection",14,"https:\u002F\u002Fgithub.com\u002FGAJETOso\u002Ffinanceskills","https:\u002F\u002Fgithub.com\u002FGAJETOso","2026-11-01 19:06:28",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add GAJETOso\u002Ffinanceskills --skill ai-anomaly-detection",{"tool":39,"command":40},"bunx","bunx skills add GAJETOso\u002Ffinanceskills --skill ai-anomaly-detection",{"tool":42,"command":43},"pnpm","pnpm dlx skills add GAJETOso\u002Ffinanceskills --skill ai-anomaly-detection","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FGAJETOso\u002Ffinanceskills\u002Fblob\u002Fmain\u002Fskills\u002Fai-anomaly-detection\u002FSKILL.md",true,[47,53,59,63,67,71],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"evals\u002Fevals.json","REFERENCE","参考文档",3099,"https:\u002F\u002Fgithub.com\u002FGAJETOso\u002Ffinanceskills\u002Fblob\u002Fmain\u002Fskills\u002Fai-anomaly-detection\u002Fevals\u002Fevals.json",{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"evals\u002Ffiles\u002Fexpense_ledger.csv","ASSET","资产文件",3023,"https:\u002F\u002Fgithub.com\u002FGAJETOso\u002Ffinanceskills\u002Fblob\u002Fmain\u002Fskills\u002Fai-anomaly-detection\u002Fevals\u002Ffiles\u002Fexpense_ledger.csv",{"path":60,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":61,"sourceHtmlUrl":62},"EXAMPLE.md",1085,"https:\u002F\u002Fgithub.com\u002FGAJETOso\u002Ffinanceskills\u002Fblob\u002Fmain\u002Fskills\u002Fai-anomaly-detection\u002FEXAMPLE.md",{"path":64,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Ffeature-engineering.md",1739,"https:\u002F\u002Fgithub.com\u002FGAJETOso\u002Ffinanceskills\u002Fblob\u002Fmain\u002Fskills\u002Fai-anomaly-detection\u002Freferences\u002Ffeature-engineering.md",{"path":68,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fml-algorithms.md",1917,"https:\u002F\u002Fgithub.com\u002FGAJETOso\u002Ffinanceskills\u002Fblob\u002Fmain\u002Fskills\u002Fai-anomaly-detection\u002Freferences\u002Fml-algorithms.md",{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"scripts\u002Fcalculate.py","SCRIPT","脚本",1670,"https:\u002F\u002Fgithub.com\u002FGAJETOso\u002Ffinanceskills\u002Fblob\u002Fmain\u002Fskills\u002Fai-anomaly-detection\u002Fscripts\u002Fcalculate.py",[78,85,92,99,106,113],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M745DSK21QQTSYM6WRABKEGG","working-capital-analysis","When the user wants to analyze or optimize working capital — receivables, payables, inventory, and the cash conversion cycle. Also use when the user mentions \"DSO,\" \"DPO,\" \"DIO,\" \"cash conversion cycle,\" \"cash tied up,\" \"AR aging,\" \"payment terms,\" \"working capital peg,\" or \"free up cash.\"","https:\u002F\u002Fgithub.com\u002FGAJETOso\u002Ffinanceskills\u002Fblob\u002Fmain\u002Fskills\u002Fworking-capital-analysis\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M745DN4XR2ZSXTJEFTJEWEYT","wacc-computation","When the user wants to calculate the Weighted Average Cost of Capital (WACC) for valuation or capital budgeting. Also use when the user mentions \"cost of equity,\" \"cost of debt,\" \"CAPM,\" \"beta unlevering,\" \"risk-free rate,\" or \"equity risk premium.\"","https:\u002F\u002Fgithub.com\u002FGAJETOso\u002Ffinanceskills\u002Fblob\u002Fmain\u002Fskills\u002Fwacc-computation\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M745DHXNRN2ZRQW1V3KHVQ37","venture-debt","When the user wants to evaluate or structure debt for high-growth, venture-backed startups. Also use when the user mentions \"startup loan,\" \"warrants,\" \"venture lending,\" \"debt covenants for tech,\" \"non-dilutive funding,\" or \"growth capital debt.\"","https:\u002F\u002Fgithub.com\u002FGAJETOso\u002Ffinanceskills\u002Fblob\u002Fmain\u002Fskills\u002Fventure-debt\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M745DFB95MJWYSA60ZB7S9Q2","variance-analysis","When the user wants to analyze the difference between actual and standard costs in manufacturing. Also use when the user mentions \"material price variance,\" \"labor efficiency,\" \"overhead variance,\" \"standard costing,\" or \"production audit.\"","https:\u002F\u002Fgithub.com\u002FGAJETOso\u002Ffinanceskills\u002Fblob\u002Fmain\u002Fskills\u002Fvariance-analysis\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M745DB7245Z297EJW8T7PZVJ","treasury-management","When the user wants to manage corporate liquidity, investments, or financial risks like FX and interest rates. Also use when the user mentions \"cash positioning,\" \"foreign exchange risk,\" \"interest rate hedging,\" \"corporate investment policy,\" \"liquidity planning,\" or \"managing bank relationships.\"","https:\u002F\u002Fgithub.com\u002FGAJETOso\u002Ffinanceskills\u002Fblob\u002Fmain\u002Fskills\u002Ftreasury-management\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M745D86PF5X0K6K30DP3P0VP","three-statement-modeling","When the user wants to build an integrated financial model linking income statement, balance sheet, and cash flow. Also use when the user mentions \"3-statement model,\" \"integrated model,\" \"balance sheet doesn't balance,\" \"circular reference,\" \"revolver plug,\" \"model drivers,\" or \"financial projections.\"","https:\u002F\u002Fgithub.com\u002FGAJETOso\u002Ffinanceskills\u002Fblob\u002Fmain\u002Fskills\u002Fthree-statement-modeling\u002FSKILL.md",[],[]]