Period-end accruals and FEC proxy
Identifies invoices to accrue at period end and generates a proxy FEC file to prepare cut-off accounting entries.
58/100Β·π MonthlyΒ·ExpertController
ERP exportReconciliationget_payablesget_chart_of_accounts
π― Skill purpose
Identifies invoices to accrue at period end and generates a proxy FEC file to prepare cut-off accounting entries.
π What it produces
List of accruals to post by GL code and CSV template of proxy FEC entries for accounting integration.
β‘ Benefit
Before
Preparing cut-off entries is manual, time-consuming, and error-prone at month end.
After
Accrual base ready in minutes with amounts by GL code, ready for ERP integration.
# Period-end accruals and FEC proxy
## Purpose
Identify payables received during the period but not yet booked (basis for accrual / cut-off entries), and extract the data needed for a partial FEC.
**Important limitation:** the official FEC (Fichier des Γcritures Comptables, the French statutory accounting entries file) requires specific fields (entry label, journal number, etc.) that Spendesk does not provide directly. This skill produces a useful proxy file, but it is not directly submittable to the tax authorities.
## Instructions
### Step 1 β Identify the payables to accrue
```
Call get_payables with:
- bookingStatus: toPrepare or toExport (not yet exported)
- invoiceDate: within the period being closed (e.g. month M)
- firstCreatedAt: may extend beyond the period (late arrivals)
To be accrued:
- Invoices with invoiceDate β€ end of period M but not yet exported
- Subscriptions (payableType=subscription) whose period covers M
```
### Step 2 β Calculate the total accrual amount
```
For each payable to accrue:
Accrual = amount (net amount if available)
Currency = currency
Likely GL code = glCode or accountingCode
Aggregate: total accruals by currency and by GL code.
```
### Step 3 β Extract the FEC proxy data
```
For each payable exported during the period (bookingStatus=exported):
Build a line with the available FEC fields:
- JournalCode (proxy: ACH for purchases, NDF for expense claims)
- JournalLib: journal label
- EcritureDate: invoiceDate or accountingDate
- CompteNum: glCode
- CompteLib: chart of accounts label
- Montant: amount
- Devise: currency
- PieceRef: invoiceNumber if available
- LibelleEcriture: supplierName + description
Missing fields (not available in Spendesk MCP):
- EcritureNum (sequential ERP number)
- CompAuxNum (sub-ledger account)
- DateLet (matching/reconciliation date)
```
### Step 4 β Accrual report
```
Present:
1. Total accruals to book by GL code (table)
2. List of payables to accrue with amount and supplier
3. CSV template of the FEC proxy entries (columns separated by |)
4. Warning: complete with the missing ERP fields before legal submission
```
## Points to watch
- This skill does not replace the FEC generated by your ERP β it is a preparation tool
- Spendesk amounts are gross (VAT included) unless VAT is configured
- Always validate accrual entries with the accountant before ERP integration
## Example prompts
- "Which payables do I need to accrue for the January close?"
- "Prepare the data for the end-of-quarter accruals"
- "Give me a FEC proxy export of the invoices exported this month"
How to install this skill
/
- 1Download the file
s49-fec-regularisation.mdusing the button above. - 2Place the file in the
.claude/directory of your project (or~/.claude/for a global install).cp s49-fec-regularisation.md .claude/s49-fec-regularisation.md - 3Use in Claude Code β the skill is automatically discovered. Describe your need in natural language and Claude will apply the skill instructions.
π‘ Make sure the Spendesk MCP is configured in your
.claude/settings.json with the tools get_payables, get_chart_of_accounts.Similar skills
β
Top