taktwpf

taktwpf is a cursor rule for Cursor from Takt365/Takt.Wpf. It costs 785 tokens per session, scanned A, original, MIT.

A set of Cursor rules for a .NET 9 WPF application using MVVM and Clean Architecture. The rules cover project structure, naming, dependencies, asynchronous code, prompts, and context.

In plain words
What is it for?
Use it when developing or reviewing the Takt SMEs Platform, especially for keeping layers separate, following naming conventions, injecting dependencies, and keeping business logic out of the UI.
Why use it?
It gives the coding agent project-specific boundaries and requires conclusions and generated code to be based on the real codebase.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when developing or reviewing the Takt SMEs Platform, especially for keeping layers separate, following naming conventions, injecting dependencies, and keeping business logic out of the UI.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/takt365/takt.wpf/taktwpf
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Takt365/Takt.Wpf

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for taktwpf

README.md
[![agentmods](https://agentmods.dev/badge/rules/takt365/takt.wpf/taktwpf.svg)](https://agentmods.dev/rules/takt365/takt.wpf/taktwpf)
Your own site
<a href="https://agentmods.dev/rules/takt365/takt.wpf/taktwpf"><img src="https://agentmods.dev/badge/rules/takt365/takt.wpf/taktwpf.svg" alt="Measured on agentmods" height="20"></a>
Per session 785 This file is loaded in full into every session.
When invoked 785 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00785 $0.00785
Opus 5 $0.00392 $0.00392
Sonnet 5 $0.00157 $0.00157
Haiku 4.5 $0.00078 $0.00078

Measured 7d ago against content hash f7c11c11bb98, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

taktwpf scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/taktwpf.mdc · 94 lines

What it actually says

节拍(Takt)中小企业管理平台 · Takt SMEs Platform 项目规则

项目信息

  • 项目名称: 节拍(Takt)中小企业管理平台(Takt SMEs Platform)
  • 技术栈: .NET 9.0, WPF, MVVM 模式
  • 架构模式: Clean Architecture(分层架构)
  • 项目结构: @docs/README.md

核心原则

  1. 基于真实代码:所有结论必须基于真实代码,不能推测
  2. 明确信息来源:必须说明信息来源(代码、文档、推测)
  3. 提供足够上下文:提供完整的项目背景、代码位置、依赖关系
  4. 验证所有输出:使用验证清单检查 AI 生成的代码

规则文件结构

本项目的规则文件已拆分为多个可组合的小规则:

  • architecture.mdc - 架构规范和分层原则
  • naming.mdc - 命名规范和文件组织
  • mvvm.mdc - MVVM 模式规范
  • dependency-injection.mdc - 依赖注入规范
  • async.mdc - 异步编程规范
  • prompt.mdc - 提示语编写规范
  • context.mdc - 上下文管理规范

快速参考

命名规范

  • 类名必须以 Takt 开头(如 TaktUserService
  • 接口必须以 ITakt 开头(如 ITaktUserService
  • 异步方法必须以 Async 结尾
  • 参考:@.cursor/rules/naming.mdc

架构规范

  • 分层架构:Fluent -> Application -> Domain -> Infrastructure -> Common
  • 依赖方向只能向下,禁止跨层调用
  • 参考:@.cursor/rules/architecture.mdc

MVVM 规范

  • View 只负责 UI,不包含业务逻辑
  • ViewModel 通过构造函数注入依赖
  • 参考:@.cursor/rules/mvvm.mdc

文件头模板

所有源码文件必须包含统一的头部注释,参照 @src/Takt.Application/Dtos/Identity/LoginDto.cs:1-12

// ========================================
// 项目名称:节拍(Takt)中小企业管理平台 · Takt SMEs Platform
// 命名空间:{Namespace}
// 文件名称:{FileName}
// 创建时间:{CreatedTime}
// 创建人:Takt365(Cursor AI)
// 功能描述:{Description}
//
// 版权信息:Copyright (c) 2025 Takt SMEs Platform. All rights reserved.
// 免责声明:此软件使用 MIT License,作者不承担任何使用风险。
// ========================================

文件引用格式

使用 @文件路径 引用文件:

  • @src/Takt.Fluent/Views/MainWindow.xaml
  • @src/Takt.Fluent/ViewModels/DashboardViewModel.cs:40(带行号)

提示语格式

[任务类型] [目标描述]

**相关代码**:
- @文件路径:行号

**需求**:
- 具体需求

**约束条件**:
- 必须遵循的规范

**验证要求**:
- 必须基于真实代码验证

参考:@.cursor/rules/prompt.mdc 和 @.cursor/rules/context.mdc

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 94 lines · 785 tokens per session scan A f7c11c11bb98

Subscribe to this mod's changes

taktwpf is a cursor rule published in the GitHub repository Takt365/Takt.Wpf (18 stars, last pushed 8mo ago), licensed MIT. It adds 785 tokens to every session, about $0.0039 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.