Skip to content
Agentmart
Submit a tool

pt-irs-runbook

Portuguese personal income tax (IRS / Código do IRS) and Modelo 3 filing — determining tax residency (Art.

Skill by pproenca

IndexedMIT★ 218
Write a review

Chalk Labs

Need help deploying pt-irs-runbook?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/pproenca-pt-irs-runbook

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Portuguese personal income tax (IRS / Código do IRS) and Modelo 3 filing — determining tax residency (Art. 16), classifying income by category (rental/Anexo F, capital gains/Anexo G, employment/Anexo A, self-employment/Anexo B, pensions, foreign income/Anexo J), choosing the right annexes, applying current Art. 72 autonomous rates, and meeting Portal das Finanças deadlines. Covers residents and non-residents, including landlords with Portuguese-source rental income and double-taxation relief. Portugal-specific; not a substitute for a contabilista certificado.

Use cases: productivity, finance

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/pt-irs-runbook

What's inside

Skill name
pt-irs-runbook
Description
Portuguese personal income tax (IRS / Código do IRS) and Modelo 3 filing — determining tax residency (Art. 16), classifying income by category (rental/Anexo F, capital gains/Anexo G, employment/Anexo A, self-employment/Anexo B, pensions, foreign income/Anexo J), choosing the right annexes, applying current Art. 72 autonomous rates, and meeting Portal das Finanças deadlines. Covers residents and non-residents, including landlords with Portuguese-source rental income and double-taxation relief. Portugal-specific; not a substitute for a contabilista certificado.
License
MIT
Instructions
87 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (17)

  • SKILL.md
  • report.md · assets/templates/
  • config.json
  • gotchas.md
  • metadata.json
  • capital-gains-tree.md · references/
  • employment-pension-tree.md · references/
  • filing-obligation-tree.md · references/
  • foreign-income-tree.md · references/
  • property-capital-gain.py · references/queries/
  • rental-tax-estimate.py · references/queries/
  • residency-days.py · references/queries/
  • rates-and-deductions.md · references/
  • rental-income-tree.md · references/
  • residency-tree.md · references/
  • self-employment-tree.md · references/
  • symptoms.md · references/

SKILL.md (first lines)

# Portugal IRS Filing Runbook

A diagnostic runbook for Portuguese personal income tax (IRS). Each *symptom* is a
filing situation; each decision tree routes from the situation to the correct
**annex, autonomous rate, and deadline**, then terminates in a concrete filing
action or a clear "escalate to a contabilista certificado for {reason}".

> **Not tax advice.** This skill encodes the CIRS and Portal das Finanças rules as
> verified on the cited dates. Tax rates and thresholds change with each Orçamento
> do Estado. Always confirm figures against the live Art. 68/72 text and the
> official Modelo 3 / IRS automático screens before submitting, and involve a
> contabilista certificado for anything non-routine. Default income year is
> **2025 (return filed 1 Apr – 30 Jun 2026)** unless stated otherwise.

## When to Apply

- The user asks how to **file a Modelo 3** (PT annual income tax return) or which
  annexes apply to their income.
- The user needs to know whether they are a **PT tax resident or non-resident**,
  and what that changes.
- The user receives **Portuguese-source income** — rent, a property/share sale,
  salary, pension, or self-employment fees — and must declare it.
- The user is a **non-resident landlord** (or has foreign income as a resident)
  and needs the right rate plus **double-taxation relief**.
- The user asks about a specific PT regime: **IRS automático, IRS Jovem, IFICI
  (the post-NHR regime), englobamento, mais-valias reinvestment**.

This skill is Portugal-specific. For UK/other-country filing it is out of scope
(though it covers the *PT side* of a cross-border situation, e.g. PT rental income
that also appears on a UK SA106).

## How to Use

1. **Always start at residency.** Read [residency-tree](references/residency-tree.md).
   Residency status (Art. 16) determines the entire regime — worldwide vs
   PT-source-only income, progressive vs flat rates, deductions vs none.
2. **Then check whether a return is even required** and which annexes:
   [filing-obligation-tree](references/filing-obligation-tree.md).
3. **Open the tree for each income type the user has.** A taxpayer often needs
   several annexes at once.
4. **Look up every rate/threshold in one place:**
   [rates-and-deductions.md](references/rates-and-deductions.md) is the single
   source of truth; the trees link to it rather than restating numbers.
5. **Estimate figures deterministically** with the calculators in
   [references/queries/](references/queries/) (day-count, rental tax, capital
   gain), then **verify on Portal das Finanças**.
6. **Summarise the outcome** with [assets/templates/report.md](assets/templates/report.md).

## Common Symptoms

| # | Symptom / Question | Entry tree | Priority |
|---|--------------------|-----------|----------|
| 1 | "Am I resident or non-resident — and what changes?" | [residency-tree](references/residency-tree.md) | P1 (gateway) |
| 2 | "Do I have to file? Can I accept IRS automático? Which annexes?" | [filing-obligation-tree](references/filing-obligation-tree.md) | P1 (router) |
| 3 | "I receive rent from a PT property" (Categoria F) | [rental-income-tree](references/rental-income-tree.md) | P1 |
| 4 | "I sold a property or shares" (Categoria G / mais-valias) | [capital-gains-tree](references/capital-gains-tree.md) | P1 |
| 5 | "I have salary or a pension" (Categoria A / H) | [employment-pension-tree](references/employment-pension-tree.md) | P2 |
| 6 | "I'm self-employed / recibos verdes" (Categoria B) | [self-employment-tree](references/self-employment-tree.md) | P2 |
| 7 | "I have foreign income / risk of double taxation" (Anexo J) | [foreign-income-tree](references/foreign-income-tree.md) | P2 |

### Usual suspects — the mistakes a default answer makes

| Wrong default | Reality | Where |
|---------------|---------|-------|
| "Rental income is taxed at the progressive scale" | Cat F has its own **autonomous rate** (25% base, lower for long leases); englobamento is *optional* | [rental-income-tree](references/rental-income-tree.md) |
| "A 2-year lease gets a reduced rental rate" | The Art. 72 reductions start at **5-year** permanent-housing contracts; under 5 years = **25%** | [rates-and-deductions.md](references/rates-and-deductions.md) |
| "Non-residents pay 28% on the whole property gain" | Since 2023 non-residents get the **50% inclusion + progressive rates**, like residents | [capital-gains-tree](references/capital-gains-tree.md) |
| "Just sign up for NHR" | NHR is **closed to new arrivals**; the current regime is **IFICI** with much narrower eligibility | [foreign-income-tree](references/foreign-income-tree.md) |
| "A non-resident must appoint a fiscal representative" | Optional if you adhere to **electronic notifications**; always optional for EU/EEA residents | [filing-obligation-tree](references/filing-obligation-tree.md) |

## Setup

On first use, populate [config.json](config.json) with the taxpayer's situation
(residence country, fiscal representative status, applicable tax treaty, NIF). If a
required field is empty, ask the user, then save it. Never store passwords — login
to Portal das Finanças is interactive.

## Gotchas

Diagnostic dead-ends and portal quirks accumulate in [gotchas.md](gotchas.md).
Read it before a non-trivial filing.

## Related Skills

- A UK Self Assessment / SA106 runbook would complement this for the cross-border
  (PT rental → UK FTCR) case — not part of this skill.

From pproenca/dot-skills, MIT.

More from pproenca/dot-skills

Signals

Stars
218
Forks
19
Open issues
3
Last commit (this folder)
Jul 5, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from pproenca

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get pt-irs-runbook running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying pt-irs-runbook?

CallGet help
Cite this page

pt-irs-runbook skill. Agent Mart. https://agentmart.dev/skills/pproenca-pt-irs-runbook (last updated 2026-10-24)