Introduction¶
Small and micro-enterprises and individual businesses often encounter the same type of problem in their operations: contracts, invoices, bank statements, and accounting are each managed separately. When the tax bureau schedules an interview or conducts a self-inspection, it is difficult to quickly prove “three-flow consistency” or even “five-flow consistency.” Relying solely on general-purpose large model Q&A often only yields principled advice, lacking actionable verification rules, document checklists, and operational paths to integrate with local business data.
Below is an introduction to the SkillHub community Skill five-flow-compliance (Coordinates @user_11064e10/five-flow-compliance). It uses a standard SKILL.md to constrain Agent behavior and includes Python modules and reference documentation to string together business flow, contract flow, invoice flow, capital flow, and financial flow into an executable compliance management process. Starting with v1.2.6, it emphasizes self-learning and cloud synchronization, aiming to accumulate rules and thresholds during use.
What is this¶
Positioning: A “Five Flows United” enterprise compliance operation management system, serving as a fiscal and tax risk and compliance assistant Skill for Agents.
Maintenance and Source: Categorized as professional on SkillHub, sourced from community, and published by user_11064e10. The copyright statement within the package belongs to WorkBuddy Skills. The SkillHub page marks requires_api_key=false, meaning no separate configuration of a third-party API Key is required after installation to use local script capabilities as documented (availability of cloud sync needs to be detected using the provided commands).
Problems Solved: Unifies trigger words, data collection principles, five-flow verification logic, and compliance check items within Agent conversations. It also allows for local initialization of data directories, uploading and parsing of bank statements/invoices/contracts, and running compliance checks and reports via main.py.
Core Functions¶
The following capabilities are derived from the SKILL.md and main.py subcommand definitions within the Skill package, categorized by module.
Five Flows United Framework¶
The Skill decomposes compliance operations into five lines and defines cross-verification relationships:
- Business Flow: Project/business management
- Contract Flow: Purchase and sales contract management
- Invoice Flow: Purchase and sales invoices and materials management
- Capital Flow: Bank statement management
- Financial Flow: Financial bookkeeping and tax filing
The verification chain includes consistency checks between contract flow and business flow, invoice flow and contract flow, capital flow and invoice flow, financial flow and capital flow, and tax filing and accounting data. It also provides compliance check items such as “Three Flows Consistency” (Contract, Invoice, Capital).
Functional Modules (11 Items)¶
- Business Project Management: Project initiation, tracking, revenue/expense analysis, and profit analysis.
- Purchase & Sales Contract Management: Entry, performance monitoring, and electronic archiving.
- Purchase & Sales Invoice Management: Entry, authenticity verification, duplicate checking, and archiving.
- Bank Statement Management: Import, business matching, and capital monitoring.
- Financial Bookkeeping: Vouchers, account balances, and the three major financial statements.
- Tax Filing: VAT, corporate income tax, personal income tax calculation, and declaration form generation.
- Tax Planning: See
references/tax-planning-guide.md. - Risk Rectification: Institutional/operational/documentation level plans; see
references/rectification-plan-guide.md. - Electronic Archiving: Projects, contracts, invoices, reports.
- Statistical Reports: Operations, tax, capital, project profit, etc.
- Cloud Sync: Self-learning data upload/query/merge (
lib/learn_sync.py).
Data Collection and Invoice Amount Reconciliation¶
The Skill explicitly requires: Business data must be collected via uploading original files; manual input is prohibited. Supported types include bank statements (CSV, Excel, PDF), invoices (PDF, images), contracts (PDF, Word, images), project materials (PDF, Excel), etc.
When processing invoice-type images, the Agent must execute a three-step amount logic as prescribed by the Skill: Addition verification (Amount excluding tax + Tax amount = Total price with tax), Multiplication verification (Tax rate and tax amount, allowing a ±0.10 error), and back-calculating to complete the amount excluding tax and tax amount when necessary.
Compliance Check Items¶
Checks listed in the documentation include: Invoice authenticity verification, Three Flows Consistency, abnormal tax burden rate, cost-expense ratio, abnormal current account reconciliation, etc. The CLI provides entries such as check five-flow and check tax-risk.
Self-Learning and Cloud Sync¶
- Local Self-Learning Data File:
data/five_flow_learn.json, recording OCR keywords, compliance check thresholds, etc. - Cloud Sync Script:
lib/learn_sync.pysupports--upload,--query,--sync(bidirectional),--test-api,--status.
In conversations, the Skill also attaches fixed footer contact information (Author QQ, discussion group) according to rules. When using the Agent, attention must be paid to output format requirements.
Installation and Activation¶
Installation via SkillHub CLI¶
Both the official page and the API entry prompt: First read the SkillHub Installation Instructions, then install this Skill.
Check the CLI:
command -v skillhub && skillhub --version
If not installed, execute the full installation (recommended by documentation):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
Install the Skill to the skills directory recognized by the current Agent (must include --dir, otherwise it defaults to ./skills/ and may not be loaded):
skillhub install @user_11064e10/five-flow-compliance --dir <your skills directory>
Common paths (excerpted from SkillHub installation docs):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
You can also give the prompt below to an AI to have it complete the installation according to the installation documentation:
Please install @user_11064e10/five-flow-compliance based on https://skillhub.cn/install/skillhub.md.
After installation, enable the Skill in the Agent. Using trigger words like “Five Flows United”, “Fiscal and Tax Compliance”, or “Import Bank Statements” in the conversation will route according to SKILL.md.
Local Python Environment (Optional)¶
The Skill provides main.py as the local entry point. For first-time use, initialize the data directory and data/config.json in the Skill package directory:
cd <skills directory>/@user_11064e10/five-flow-compliance
python3 main.py init
Edit fields such as company_name, tax_id, bank_account in data/config.json as needed. Refer to python3 main.py --help for specific subcommands.
Typical Usage¶
Compliance Q&A in Agents¶
SKILL.md and references/qa-examples.md provide reproducible conversation paradigms, for example:
- Tax Bureau points out Three Flows Inconsistency: Organize rectification ideas from the institutional layer (Invoice/Capital/Contract systems), operational layer (Contract -> Delivery -> Invoicing -> Collection), and documentation layer (Evidence chain of contracts, delivery notes, invoices, bank receipts).
- Tax Inspection Data Preparation: Prioritize purchase and sales contracts from the last 2 years, input deduction copies and output stubs, and bank statements for all accounts; the self-inspection formula is Contract Amount = Invoice Amount = Bank Receipt/Payment Amount.
- Building Five Flows United from Zero: Establish systems in phases, select tools, and build monthly self-inspection and warning mechanisms.
In environments like Cursor, directly describe the scenario and upload relevant files; the Agent will follow the Skill’s requirements for file collection rather than manual amount entry.
Uploading and Parsing Business Files¶
Execute the upload subcommand in the Skill directory to auto-identify or specify the type:
python3 main.py upload /path/to/bank_export.csv --type bank
python3 main.py upload /path/to/invoice.pdf --type invoice
python3 main.py upload /path/to/contract.pdf --type contract
--type auto is the default, determining the type automatically based on content.
Five Flow and Tax Risk Checks¶
python3 main.py check five-flow --project-id <ProjectID>
python3 main.py check tax-risk --period 2026-Q1
Cloud Sync of Self-Learning Data¶
Invoke the sync script in the Skill package directory:
python3 lib/learn_sync.py --test-api
python3 lib/learn_sync.py --status
python3 lib/learn_sync.py --sync
--upload and --query correspond to uploading local learning data and querying/merging cloud data respectively; success should be judged by the JSON returned by the command.
Applicable Scenarios and Notes¶
Who is it for
- Individual businesses, sole proprietorships, small-scale taxpayers, small and micro-enterprises.
- Financial/operations personnel who need to systematically discuss five-flow verification, tax rectification, and document checklists within an Agent.
- Teams willing to use file upload as the sole data entry point and retain the
data/workspace locally.
Limitations and Notes
- Professional Boundaries: Skill output cannot replace the opinion of a licensed tax agent or lawyer; filing and rectification plans must be based on the requirements of the competent tax authority.
- Data Principles: Violating the “prohibition of manual input of business data” rule will reduce verification credibility; original documents such as bank exports, invoice PDFs/images, and contract scans should be used.
- Integrity Check:
main.pyattempts anintegrity_guardintegrity check at startup. It will exit if the check fails, requiring the use of an unaltered official installation package. - Version Information: The SkillHub list version is 1.2.6; the
manifest.jsoninside the package may show other internal version numbers. Upgrades should be based on the SkillHub release page. - Community Metrics: SkillHub shows a score of 100000, approximately 1271 downloads, and 12 installs (statistics change with platform updates). These are for discovery reference only and do not represent an audit endorsement.
- Cloud Sync: Involves uploading self-learning data to a remote server. Before use, confirm connectivity and compliance requirements with
--test-api, and assess data sensitivity.
Conclusion¶
five-flow-compliance breaks down “Five Flows United” from a slogan into Agent-executable trigger rules, file collection processes, verification checklists, and a local CLI. Layered with self-learning and optional cloud sync, it serves as a suitable starting point for a specialized Skill in small and micro fiscal and tax compliance scenarios.
Official Entries:
- SkillHub Page: https://www.skillhub.cn/skills/user_11064e10/five-flow-compliance
- API Coordinate Page: https://api.skillhub.cn/user_11064e10/five-flow-compliance