← 返回 Skills 市场
alexwoo-awso

Ksef Accountant En

作者 alexwoo-awso · GitHub ↗ · v2.2.6
cross-platform ✓ 安全检测通过
1447
总下载
1
收藏
0
当前安装
6
版本数
在 OpenClaw 中安装
/install ksef-accountant-en
功能描述
Polish National e-Invoice System (KSeF) accounting assistant (English). Use when working with KSeF 2.0 API, FA(3) invoices, Polish VAT compliance, e-invoice...
使用说明 (SKILL.md)

KSeF Accounting Agent

Specialized knowledge for operating the National e-Invoice System (KSeF) in the KSeF 2.0 environment with the FA(3) structure. Supports accounting tasks related to electronic invoicing in Poland.

Security Model

This skill is instruction-only — it consists of Markdown files containing domain knowledge, architectural patterns and code examples. It does not contain any executable code, binaries, installation scripts or runtime dependencies.

Skill-side guarantees:

  • disableModelInvocation: true / disable-model-invocation: true — declared in both the frontmatter metadata (both formats: camelCase and kebab-case) and in the dedicated manifest skill.json. The skill should not be invoked autonomously by the model.
  • secret: true — the environment variables KSEF_TOKEN and KSEF_ENCRYPTION_KEY are marked as secrets in the frontmatter and skill.json, signaling to the platform that they must be isolated and must not be logged or displayed.
  • No executable code — all examples (Python, XML, JSON) are illustrative, NOT code executed by the skill.
  • No installation — the skill does not write files to disk, does not download dependencies, does not modify system configuration.
  • Dedicated manifest skill.json — a machine-readable file with security metadata, environment variable declarations and constraints. If the platform does not parse the SKILL.md frontmatter correctly, it should read metadata from skill.json.

NOTE — registry metadata verification before installation:

Security flags are declared in two sources: the SKILL.md frontmatter and skill.json. Nevertheless, the hosting platform may not read or enforce these flags. Before installation you MUST perform the following steps:

  1. Check registry metadata — after adding the skill to the platform, open the registry metadata view displayed by the platform. Verify that the disable-model-invocation field is set to true and that the environment variables (KSEF_TOKEN, KSEF_ENCRYPTION_KEY, KSEF_BASE_URL) are visible with the secret label. If the platform shows not set, false or does not display these fields — the flags are NOT enforced.
  2. If registry metadata does not match frontmatter/skill.json — treat the skill as higher risk: DO NOT provide credentials (tokens, certificates, keys), DO NOT configure environment variables (KSEF_TOKEN, KSEF_ENCRYPTION_KEY), DO NOT allow autonomous use.
  3. Verify environment variable isolation — confirm that the platform isolates env vars and does not log/display their values in the conversation.
  4. If the platform does not enforce flags — contact the platform provider to enable support for disableModelInvocation (or parsing of skill.json) or do not install the skill with access to any credentials.

Platform-dependent guarantees:

  • Enforcement of the disableModelInvocation flag depends on the hosting platform. The frontmatter alone does not provide protection — it requires platform-side support.
  • Environment variable (env vars) isolation depends on the platform. The skill declares them as optional but does not control how the platform stores and exposes them.
  • If the platform does not enforce these settings, treat the skill as higher risk and do not provide it with credentials or production access.

Constraints

  • Knowledge only — no code execution - Provides domain knowledge, architectural patterns and guidance. All code examples (including ML/AI) are educational and illustrative. The skill does NOT run ML models, does NOT perform inference, does NOT require Python/sklearn runtimes or any binaries. The agent explains algorithms and suggests code for the user to implement.
  • Not legal or tax advice - Information reflects the state of knowledge at the time of writing and may be outdated. Always recommend consulting a tax advisor before implementation.
  • AI assists, does not decide - Descriptions of AI features (expense classification, fraud detection, cash flow prediction) are reference architecture and implementation patterns. The agent provides knowledge about algorithms and helps write code — it does not make binding tax or financial decisions.
  • User confirmation required - Always require explicit user consent before: blocking payments, sending invoices to production KSeF, modifying accounting records or any action with financial consequences.
  • User-managed credentials - KSeF API tokens, certificates and encryption keys must be provided by the user via environment variables (declared in metadata: KSEF_TOKEN, KSEF_ENCRYPTION_KEY, KSEF_BASE_URL) or a secrets manager. The skill never stores, generates, transmits or implicitly requests credentials. NEVER paste credentials (tokens, keys, certificates) directly in the conversation with the agent — use environment variables or the platform's secrets manager. Vault/Fernet usage examples in the reference documentation are architectural patterns for user implementation.
  • Use DEMO for testing - Production (https://ksef.mf.gov.pl) issues legally binding invoices. Use DEMO (https://ksef-demo.mf.gov.pl) for development and testing.
  • Autonomous invocation disabled - The skill sets disableModelInvocation: true and disable-model-invocation: true in the frontmatter metadata (both naming formats) and in the dedicated manifest skill.json. This means the model should not invoke this skill autonomously — it requires explicit user action. NOTE: The frontmatter and skill.json are declarations — not guarantees. Enforcement depends on the platform. Before use, verify that the registry metadata displayed by the platform also shows disable-model-invocation: true. If the platform shows not set or false, the flag is not enforced and the skill may be invoked autonomously (see "Security Model" section above).

Pre-installation Checklist

Before installing the skill and configuring environment variables, perform the following steps:

  • Verify platform registry metadata — the disable-model-invocation field must show true
  • Verify that the platform has read env var declarations from the frontmatter or skill.json — the variables KSEF_TOKEN and KSEF_ENCRYPTION_KEY must be visible as secrets (secret: true)
  • Confirm that the platform isolates environment variables (does not log, does not display in conversation)
  • Test the skill exclusively with the DEMO environment (https://ksef-demo.mf.gov.pl) before any production use
  • DO NOT paste tokens, keys or certificates directly in the conversation — use env vars or a secrets manager
  • If registry metadata does not match frontmatter/skill.json — DO NOT configure credentials and report the issue to the platform provider

Core Competencies

1. KSeF 2.0 API Operations

Issuing FA(3) invoices, downloading purchase invoices, managing sessions/tokens, handling Offline24 mode (emergency), downloading UPO (Official Acknowledgement of Receipt).

Key endpoints:

POST /api/online/Session/InitToken     # Session initialization
POST /api/online/Invoice/Send          # Send invoice
GET  /api/online/Invoice/Status/{ref}  # Check status
POST /api/online/Query/Invoice/Sync    # Query purchase invoices

See references/ksef-api-reference.md - full API documentation with authentication, error codes and rate limiting.

2. FA(3) Structure

FA(3) vs FA(2) differences: invoice attachments, EMPLOYEE contractor type, extended bank account formats, 50,000 line item limit for corrections, JST and VAT group identifiers.

See references/ksef-fa3-examples.md - XML examples (basic invoice, multiple VAT rates, corrections, MPP, Offline24, attachments).

3. Accounting Workflows

Sales: Data -> Generate FA(3) -> Send to KSeF -> Get KSeF number -> Post Dr 300 (Receivables) | Cr 700 (Sales) + Cr 220 (Output VAT)

Purchases: Query KSeF -> Download XML -> AI Classification -> Post Dr 400-500 (Expenses) + Dr 221 (VAT) | Cr 201 (Payables)

See references/ksef-accounting-workflows.md - detailed workflows with payment matching, MPP, corrections, VAT registers and month-end closing.

4. AI-Assisted Features (Reference Architecture)

The descriptions below are implementation patterns and reference architecture. The skill does NOT run ML models — it provides knowledge about algorithms, helps design pipelines and write code for implementation in the user's system. Code examples in reference files (Python, sklearn, pandas) are illustrative pseudocode — the skill does not contain trained models, ML artifacts or executable files.

  • Expense classification - Pattern: contractor history -> keyword matching -> ML model (Random Forest). Flag for review if confidence \x3C 0.8.
  • Fraud detection - Pattern: Isolation Forest for amount anomalies, scoring for phishing invoices, graph analysis for VAT carousel.
  • Cash flow prediction - Pattern: Random Forest Regressor based on contractor history, amounts and seasonal patterns.

See references/ksef-ai-features.md - conceptual algorithms and implementation patterns (require sklearn, pandas — not dependencies of this skill).

5. Compliance and Security (Implementation Patterns)

The following are recommended security patterns for implementation in the user's system. The skill provides knowledge and code examples — it does not implement these mechanisms itself.

  • VAT White List verification before payments
  • Encrypted token storage (Fernet/Vault patterns — for user implementation)
  • Audit trail of all operations
  • 3-2-1 backup strategy
  • GDPR compliance (anonymization after retention period)
  • RBAC (role-based access control)

See references/ksef-security-compliance.md - implementation patterns and security checklist.

6. Corrective Invoices

Download original from KSeF -> Create FA(3) correction -> Link to original KSeF number -> Send to KSeF -> Post reversal or differential entry.

7. VAT Registers and JPK_V7

Generating sales/purchase registers (Excel/PDF), JPK_V7M (monthly), JPK_V7K (quarterly).

Troubleshooting - Quick Help

Problem Cause Solution
Invoice rejected (400/422) Invalid XML, NIP, date, missing fields Check UTF-8, validate FA(3) schema, verify NIP
API timeout KSeF outage, network, peak hours Check KSeF status, retry with exponential backoff
Cannot match payment Amount mismatch, missing data, split payment Extended search (+/-2%, +/-14 days), check MPP

See references/ksef-troubleshooting.md - full troubleshooting guide.

Reference Files

Load depending on the task:

File When to read
skill.json Metadata manifest — security flags, env var declarations, constraints. Source of truth for registries and scanners.
ksef-api-reference.md KSeF API endpoints, authentication, sending/downloading invoices
ksef-legal-status.md KSeF implementation dates, legal requirements, penalties
ksef-fa3-examples.md Creating or validating FA(3) XML invoice structures
ksef-accounting-workflows.md Accounting entries, payment matching, MPP, corrections, VAT registers
ksef-ai-features.md Expense classification, fraud detection, cash flow prediction algorithms
ksef-security-compliance.md VAT White List, token security, audit trail, GDPR, backup
ksef-troubleshooting.md API errors, validation issues, performance

Official Resources

安全使用建议
This skill is instruction-only and appears coherent with its KSeF accounting purpose, but follow these precautions before enabling it with real credentials: 1) After adding the skill, open the platform's registry/metadata UI and confirm disable-model-invocation (or equivalent) is set to true and that KSEF_TOKEN / KSEF_ENCRYPTION_KEY are shown as secret-scoped — if not, do NOT provide credentials. 2) Never paste tokens, certificates, or encryption keys into a chat; use the platform's secret storage/ephemeral env vars or a vault. 3) Prefer the demo base URL (https://ksef-demo.mf.gov.pl) for integration tests; do not use production until you verify platform controls and inspect audit/logging. 4) The skill contains illustrative code that, if implemented in your environment, will access external endpoints (KSeF, VAT White List, Vault) — ensure you review and secure any implementation you copy (least privilege, secret rotation, audit logs). 5) If the platform does not honor the declared disable-model-invocation or secret isolation, treat the skill as higher risk and either run it only manually with no credentials or contact the platform provider. If you want a deeper assurance, ask the skill author for a short checklist of the exact skill.json fields the platform should display and compare them to what you see in the registry.
功能分析
Type: OpenClaw Skill Name: ksef-accountant-en Version: 2.2.6 The skill bundle is classified as benign. It explicitly declares itself as 'instruction-only' with `disableModelInvocation: true` and `has_executable_code: false` in both `SKILL.md` and `skill.json`. The content consists of domain knowledge, architectural patterns, and code examples (Python, XML, JSON) which are clearly stated as illustrative and not intended for execution by the agent. The skill goes to great lengths to educate the user on security best practices, platform-dependent enforcement, and warns against common vulnerabilities (e.g., never pasting credentials in conversation, avoiding `eval`/`exec`). All network calls in code examples are directed to legitimate KSeF or Polish government (VAT White List) APIs. There is no evidence of intentional harmful behavior, data exfiltration, persistence mechanisms, or prompt injection attempts against the agent; rather, the documentation actively promotes security awareness and mitigation.
能力评估
Purpose & Capability
The name/description (KSeF accounting assistant) matches the files: extensive FA(3) examples, API reference, workflows, ML design patterns and security guidance. The optional environment variables (KSEF_TOKEN, KSEF_ENCRYPTION_KEY, KSEF_BASE_URL) are directly relevant to interacting with the KSeF API and storing tokens, so they are proportionate to the skill's purpose.
Instruction Scope
The SKILL.md and reference files contain many illustrative code snippets that show how to call KSeF endpoints, validate XML, store/rotate tokens, query the VAT White List and implement ML patterns. Those examples are appropriate for the documented use, but they do describe accessing and storing credentials (via env vars, DB or Vault) — the skill itself does not execute code, so these remain recommendations. The author also explicitly warns not to paste secrets into the conversation and instructs verifying platform-level protections before supplying real tokens.
Install Mechanism
There is no install spec and no code files to execute; the skill is instruction-only (Markdown). That yields a low installation risk: nothing is downloaded or written by the skill itself.
Credentials
No environment variables are required by default; the frontmatter declares optional secrets that are appropriate for interacting with KSeF (API token, optional encryption key, base URL). This is proportional to the task — however, safety depends on the platform correctly marking/isolating these as secrets and respecting the 'disableModelInvocation' flag before you configure them.
Persistence & Privilege
The skill declares disable-model-invocation (in frontmatter and skill.json) so it intends to be non-autonomous; always:false and disable-model-invocation:true are consistent with low privilege. There is no request for permanent or cross-skill configuration changes in the files. The frontmatter/manifest warnings appropriately ask users to confirm platform enforcement.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ksef-accountant-en
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ksef-accountant-en 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.2.6
**Security-focused update: Adds strict instruction-only and credential management warnings.** - Added a dedicated `skill.json` manifest declaring security flags, environment variables, and non-executable status. - Updated SKILL.md with expanded "Security Model" and pre-installation checklist, clarifying platform-dependent enforcement of safety features (`disableModelInvocation`, env var secrecy). - Marked the skill as instruction-only: code is for reference, not execution; no code, models, or credentials handled by the skill. - Enhanced constraints and documentation to disallow any autonomous invocation and emphasize user validation before production/credential use. - Reference and troubleshooting files updated for consistency with new security and usage guidelines.
v2.2.2
**Summary:** Major structure overhaul; streamlined documentation and new reference organization. - Documentation is now modular: all technical guides moved to the `references/` directory for clarity and easier updates. - SKILL.md drastically shortened and rewritten to be concise, compliance-focused, and clear about skill constraints and safe usage. - Reference files on API, FA(3) structure, workflows, AI features, legal status, security, and troubleshooting are now clearly listed and accessible. - Removed duplicated documentation and merged troubleshooting, workflows, and compliance content into dedicated reference files. - Guidance about credential management, legal/tax disclaimer, and production/demo separation is now more prominent.
v2.2.1
## ksef-accountant-en v2.2.1 - Updated security section to clarify the scope as accounting and KSeF e-invoicing only; infrastructure and backup examples removed. - Documentation now emphasizes that all code is business logic only, not system management or infrastructure automation. - Revised [ksef-security-compliance.md] for improved domain clarity and accurate guidance regarding production deployments. - No changes to the accounting automation, KSeF API, or AI functionality.
v2.2.0
Version 2.2.0 - Added a security notice and detailed disclaimer about code examples to clarify they are educational, not executable. - Updated documentation links to use relative paths and reflect missing/incomplete files for transparency. - Moved version history, deployment schedule, and overview to README.md for easier access. - Improved structure and navigation in SKILL.md for end users, including new resource and troubleshooting section updates. - Enhanced compliance and code safety messaging throughout documentation.
v2.1.5
- Updated KSeF rollout schedule: February 1, 2026 date now explicitly states it applies to companies with over 200 million PLN revenue in 2024. - No other content changes; documentation and all features remain as previously described.
v2.1.4
- Initial English-language release of the Autonomous KSeF Accountant Agent. - Supports comprehensive handling of Poland's KSeF 2.0 electronic invoicing, including FA(3) invoice issuance, purchase invoice retrieval, and full workflow automation. - Provides AI-assisted cost classification, anomaly/fraud detection, VAT register generation, payment matching, and cash flow forecasting. - Integrates with banking (PSD2), ERP, and CRM systems for automated data exchange. - Outlines security, compliance, troubleshooting guidelines, and includes detailed references and workflow examples.
元数据
Slug ksef-accountant-en
版本 2.2.6
许可证
累计安装 0
当前安装数 0
历史版本数 6
常见问题

Ksef Accountant En 是什么?

Polish National e-Invoice System (KSeF) accounting assistant (English). Use when working with KSeF 2.0 API, FA(3) invoices, Polish VAT compliance, e-invoice... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1447 次。

如何安装 Ksef Accountant En?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ksef-accountant-en」即可一键安装,无需额外配置。

Ksef Accountant En 是免费的吗?

是的,Ksef Accountant En 完全免费(开源免费),可自由下载、安装和使用。

Ksef Accountant En 支持哪些平台?

Ksef Accountant En 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Ksef Accountant En?

由 alexwoo-awso(@alexwoo-awso)开发并维护,当前版本 v2.2.6。

💬 留言讨论