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.

↓ Download skill (.md)
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

/
  1. 1
    Download the file s49-fec-regularisation.md using the button above.
  2. 2
    Place 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
  3. 3
    Use 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
95/100Β·πŸ” Ad hocΒ·Expert

MCP coverage audit & gap analysis

Probes all available MCP tools, re-evaluates coverage of 50 persona use cases, detects new fields or tools, and regenerates the gap analysis report.

CFOControllerAP Manager
90/100Β·πŸ“… WeeklyΒ·Beginner

Card requests via get_requests

Explains how to use get_requests for card requests and why expense reimbursements don't appear there. Avoids a frequent source of confusion between two distinct workflows.

ControllerFinance Analyst
90/100Β·πŸ” Ad hocΒ·Intermediate

Active vs archived cost centers

Distinguishes active cost centers from archived ones with correct use of get_cost_centers. Avoids the counter-intuitive isArchived vs isActive naming convention pitfall.

ControllerFinance Analyst