stamp-duty-trial
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "stamp-duty-trial" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-f62311c200b8b74d499c27e13cfb07a1bf3f0f52ac666f742feb850431872d9f. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/hjqw2026589 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Stamp Duty Trial Calculation: Performs local trial calculations of stamp duty for contracts or instruments based on common taxable items and rates under the Stamp Duty Law. Intended for estimating stamp duty for scenarios such as sales contracts, loan agreements, and lease contracts.
Introduction source: third_party · user_f1b049da · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: stamp-duty-trial
slug: hjqw2026589
displayName: 印花税试算
version: 1.0.0
summary: 按印花税法常见税目与税率,对合同或书据金额做印花税本地试算。
license: MIT
description: 按印花税法常见税目与税率,对合同或书据金额做印花税本地试算。当用户问购销合同印花税、借款合同印花税、租赁印花税时使用。印花税试算
原创:按《印花税法》常见比例税率税目,输入计税金额与税目,输出应纳税额。
证券交易印花税、复杂税收优惠(减半等)以开关形式可选,默认按法定税率。
2026 常用税目税率(‰ 即千分之)
| 税目 key | 说明 | 税率 |
|---|---|---|
| sale | 买卖合同 | 0.3‰ |
| contract_work | 承揽合同 | 0.3‰ |
| construction | 建设工程合同 | 0.3‰ |
| lease | 租赁合同 | 1‰ |
| transport | 运输合同 | 0.3‰ |
| storage | 保管合同 | 1‰ |
| loan | 借款合同 | 0.05‰ |
| insurance | 财产保险合同 | 1‰ |
| tech | 技术合同 | 0.3‰ |
| capital_books | 营业账簿(实收资本+资本公积) | 0.25‰ |
硬约束
amount ≥ 0;税额 =round2(amount × rate)(元以下按实务可注明四舍五入到分)。- 必须回显税目中文名与税率千分比。
halfRelief可选(如小微「六税两费」含印花税减半等)——默认 false,开启则 ×0.5 并警示「须符合优惠条件」。- 双方纳税义务:合同各方另有规定的,说明「试算为一方税额,不自动×2」。
- 非纳税申报;以书立合同当日有效政策与税目认定为准。
推荐实现
export const STAMP_RATES: Record<string, { name: string; rate: number }> = {
sale: { name: '买卖合同', rate: 0.0003 },
contract_work: { name: '承揽合同', rate: 0.0003 },
construction: { name: '建设工程合同', rate: 0.0003 },
lease: { name: '租赁合同', rate: 0.001 },
transport: { name: '运输合同', rate: 0.0003 },
storage: { name: '保管合同', rate: 0.001 },
loan: { name: '借款合同', rate: 0.00005 },
insurance: { name: '财产保险合同', rate: 0.001 },
tech: { name: '技术合同', rate: 0.0003 },
capital_books: { name: '营业账簿', rate: 0.00025 },
}
export function calcStampDuty(amount: number, itemKey: string, halfRelief = false) {
const item = STAMP_RATES[itemKey]
if (!item) throw new Error('未知税目')
if (!Number.isFinite(amount) || amount < 0) throw new Error('金额无效')
const raw = amount * item.rate * (halfRelief ? 0.5 : 1)
const tax = +raw.toFixed(2)
return { name: item.name, ratePerMile: item.rate * 1000, tax, halfRelief }
}
附加
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供常见合同类型的印花税试算功能,实用性强
- 覆盖购销、借款、租赁等高频税目,受众广泛
Highlights
- 触发场景描述清晰,覆盖多种合同类型变体
Areas to improve
-
缺少 When to Use 章节 Reported severity: Minor
文档未明确划分 When to Use 使用场景说明章节
Recommendation: 建议补充 When to Use 章节,明确说明适用场景和使用时机
Highlights
- 实现代码包含完整的参数校验和异常处理
- 税额计算逻辑符合实务要求,支持四舍五入到分
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.