profit-engine
Skill4 starsChanged 7 days agoApache-2.0View on GitHub
Roll up revenue minus every real cost bucket (COGS, platform commission, advertising, logistics, warehousing, returns, refunds, payment fees, penalties, FX impact, tax) into net profit per store, and explain a period-over-period profit change bucket by bucket. Trigger for "这个月净利润", "为什么GMV涨了利润却跌了", "多店利润汇总", "利润是从哪掉的", "monthly net profit", "why did profit drop while revenue grew", "profit bridge", "which cost is eating my margin". Do NOT trigger for a single already-known P&L figure with no bucket breakdown requested, and do NOT trigger for tax filing or statutory accounting — this produces an operating profit view for the seller, not a compliance document.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- artheras/skillsword for word, first seen Nov 29, 2026
- justinneuman-coder/consultantmode-skillstheir own version, first seen Nov 15, 2026
Other versions2 projects use a version of this.
Word for word · 1
- artheras/skills★ 4100% same
Edited · 0
None found.
Wrote their own version · 1
- justinneuman-coder/consultantmode-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository38 other files it gives its agents.
- ads-optimizerSkill
- ai-generated-ui-craftSkill
- aria-music-directionSkill
- backtest-validationSkill
- carrier-scorecardSkill
- commerce-operations-agentSkill
- competitor-monitorSkill
- compliance-audit-trailSkill
- conversational-ui-restraintSkill
- cross-listingSkill
- devops-incident-responderSkill
- enterprise-legal-auditSkill
- equity-research-reportSkill
- execution-positionSkill
- factor-researchSkill
- figma-design-syncSkill
- gamma-exposureSkill
- industry-design-directionSkill
- inventory-plannerSkill
- inventory-policySkill
- logistics-warehouse-auditSkill
- minimal-editorial-exportsSkill
- minimal-editorial-posterSkill
- multiple-testing-correctionSkill
- operator-revenue-integritySkill
- point-in-time-researchSkill
- portfolio-optimizationSkill
- risk-assessmentSkill
- short-form-video-editingSkill
- stablecoin-settlement-auditSkill
- strategy-generationSkill
- supply-chain-knowledge-graphSkill
- terminal-software-designSkill
- trading-ui-patternsSkill
- ui-asset-sourcingSkill
- ui-design-systemSkill
- web-motion-designSkill
- your-skill-nameSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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 61
Roll up across stores: only from stores with complete data in both periods.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
Profit Engine
revenue - COGS is not a profit number, it is a rumor. The real answer needs
platform commission, ad spend, logistics, warehousing, returns, refunds,
payment processing fees, penalties, FX movement, and tax all in the same
ledger — and the moat isn't the subtraction, it's refusing to subtract a cost
bucket nobody actually supplied. Reporting a clean profit number built by
treating a missing ad-spend feed as zero cost is not optimism, it is the
single most common way a seller's own dashboard lies to them: GMV up 18%,
"profit" up too, because the platform's rising ad bill just wasn't in the
number.
Authority boundary (read first)
This skill produces a profit report, not an accounting filing and not a tax position. It has no opinion on statutory treatment, depreciation schedules, or filing deadlines — a missing or wrong number here costs a seller a bad decision, not a compliance violation, and it should never be handed to a tax authority as-is.
Workflow — order matters
- Gather per-store, per-period cost buckets — revenue and all ten cost
lines, for the current period and the comparison (prior) period. See
references/profit-schema.md. - Refuse to zero-fill a missing bucket. A cost bucket that wasn't
supplied is
null, not0— filling it with zero always moves reported profit in the flattering direction (higher), which is exactly the error a seller least wants from this tool. A store with any missing bucket getsprofit_incomplete: trueand its net profit reported as an upper bound, not a number. - Run
python scripts/profit_waterfall.py INPUT.json(or--demo) — it computes net profit per store, then a bridge: the profit change between periods decomposed into a revenue-change term and one term per cost bucket, ranked by how much of the change each one explains. - Lead with the bridge, not the total. "Net profit is ¥X" answers the wrong question when the real ask is "why did it move." The largest magnitude line in the bridge is the headline, e.g. "advertising spend explains 42% of this month's profit decline, more than the revenue gain offset."
- Reconcile.
revenue_change - sum(cost_bucket_changes)must equalprofit_changewhen both periods are complete for a store — the script checks this and flagsbridge_mismatchif it doesn't, which usually means an FX or currency-normalization inconsistency between periods rather than a real business change. - Roll up across stores only from stores with complete data in both periods; incomplete stores are reported separately with their upper bound, never blended into a portfolio total that would silently understate the real cost base.
Guardrails
- Missing cost bucket →
nullinput,profit_incomplete: trueoutput, net profit reported as an upper bound — never zero-filled. - All-zero cost buckets for a store are flagged
suspiciously_clean(WARN) — more often an unrecorded feed than a genuinely cost-free store. - Portfolio-level totals only include stores with complete data in both periods; incomplete stores are listed, not folded in.
- The bridge decomposition must reconcile to the reported profit change for any store with complete data in both periods, or it is flagged, not hidden.
- This is an operating-profit view, not a tax or statutory filing — never represented as one.
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.

