Defendant Identification logo

Defendant Identification

Community
vivy-yi
defendant-identification

行政诉讼被告确定——根据行政行为主体层级确定被告(原机关/复议机关/共同被告)。 适用情形:拟起诉行政行为时,确定正确的被告。 核心:被告层级判断 + 复议维持 vs 改变的区别 + 委托执法的被告。

Overview

Publishervivy-yi
RepositoryGreater-China-Legal
Skill namedefendant-identification
Stars
49
Forks
9
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by vivy-yi on GitHub. Read the source before you install it.

Installation

Install the Defendant Identification AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/vivy-yi/Greater-China-Legal/tree/main/plugins/legal-scenes/administrative-litigation/skills/defendant-identification
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vivy-yi/Greater-China-Legal.git /tmp/Greater-China-Legal
mkdir -p .claude/skills
cp -r /tmp/Greater-China-Legal/plugins/legal-scenes/administrative-litigation/skills/defendant-identification .claude/skills/defendant-identification
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Defendant Identification in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Defendant Identification on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Defendant Identification is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

/defendant-identification — 行政诉讼被告确定

加载上下文

首次使用时: 读取 ../CLAUDE.md 获取 § A12 管辖 + § A7-13 不得同代理 + § B2 路由表。

工作流程

Step 1: 识别行政行为作出主体
Step 2: 评估是否经过复议
Step 3: 评估复议结果(维持 / 改变 / 未作出)
Step 4: 应用被告确定规则
Step 5: 评估是否共同被告
Step 6: 评估是否委托执法的被告

被告确定 5 类规则(《行政诉讼法》第 26 条)

规则 1: 直接起诉

✅ 作出行政行为的行政机关为被告

规则 2: 经过复议

复议结果被告
复议维持原行政行为原行政机关 + 复议机关为共同被告
复议改变原行政行为复议机关为被告
复议机关在法定期限内未作出决定原行政机关为被告(对原行为) + 复议机关(对不作为)
当事人在复议期间未起诉,过后起诉视情况(原行为 / 复议决定)

规则 3: 委托执法

✅ 委托的行政机关为被告(被委托组织不是被告)

规则 4: 行政机关被撤销 / 职权变更

✅ 继续行使其职权的行政机关为被告
✅ 没有继续行使职权的,作出撤销决定的行政机关为被告

规则 5: 共同行为

✅ 共同作出行政行为的机关为共同被告

共同被告 5 类情形

情形共同被告
复议维持原行为原机关 + 复议机关
两个以上机关共同作出共同机关
委托执法 + 委托机关委托机关(单独被告)
上下级联合执法上下级机关
行政机关 + 派出机构(经授权)行政机关 + 派出机构

被告不适格处理

法院审查后认为被告不适格:

1. 通知原告变更被告
2. 原告不同意变更 → 裁定驳回起诉
3. 原告同意变更 → 案件继续(变更登记)

原告主动追加被告:

1. 在一审庭审前可申请追加
2. 法院准许 → 案件继续
3. 法院不准许 → 原告另案起诉适格被告

被告主体层级

被告是机关 / 组织,不是个人:

错误正确
起诉个人(某工作人员)起诉机关(作出行政行为的机关)
起诉某科长起诉该科长所在的机关
起诉某市长起诉该市政府(若以市政府名义作出)

例外: 公务员的个人行为与职务行为须区分,个人行为不构成行政诉讼被告。

复议机关作为被告的特殊情况

复议改变原行为 = 复议机关单独被告:

改变类型被告
改变原行为结果(如撤销 / 变更)复议机关
改变原行为理由复议机关(司法解释倾向)
部分改变(主要事实)复议机关

复议维持原行为 = 共同被告:

情形共同被告
维持全部原机关 + 复议机关
部分维持(部分改变)原机关(对维持部分) + 复议机关(对改变部分)

派出机构作为被告

派出机构被告资格(《行政诉讼法》第 24 条):

情形被告
派出机构未经法律 / 法规授权设立该派出机构的行政机关
派出机构经法律 / 法规授权(以自己名义作出)该派出机构
派出机构超越授权范围派出机构(越权部分) + 设立机关(总责)

特别法授权:

派出机构授权被告
公安派出所《治安管理处罚法》第 91 条(500 元以下罚款)派出所
工商所《工商行政管理条例》工商所
税务所《税收征管法》税务所

被告信息核查清单

起诉前必查:

□ 作出行政行为的机关全称(法定名称)
□ 机关住所地(影响管辖)
□ 机关法定代表人(姓名 + 职务)
□ 复议机关(若经过复议)+ 复议结果
□ 共同被告(共同作出 / 复议维持)
□ 委托关系(若涉委托执法)
□ 授权关系(若涉派出机构)
□ 主体变更(若机关被撤销 / 职权变更)

被告确定错误后果

错误类型后果
漏列被告裁定驳回起诉 / 通知补正
错列被告裁定驳回起诉 / 通知变更
多列被告通知剔除 / 案件继续
列个人被告裁定驳回起诉

实务注意

被告名称必须使用法定名称:

✅ 正确:XX 市公安局XX 分局
❌ 错误:XX 公安分局(简称)
✅ 正确:XX 省人民政府
❌ 错误:XX 省政府办公室(办公室不可作被告)

被告住所地:

起诉状中必须写明:
  被告:XX 市XX 区XX 路XX 号
  (影响级别管辖)

输出格式

═══════════════════════════════════════
行政诉讼被告确定表
═══════════════════════════════════════
行政行为:[具体行政行为 + 文书名称 + 日期]
───────────────────────────────
1. 作出主体核查:
   机关全称:[XX]
   住所地:[XX]
   法定代表人:[XX]

2. 复议情况:
   是否经过复议:[是/否]
   复议机关:[XX]
   复议结果:[维持/改变/未作出]

3. 被告确定:
   □ 直接起诉:被告 = [原机关]
   □ 复议维持:共同被告 = [原机关 + 复议机关]
   □ 复议改变:被告 = [复议机关]
   □ 复议未决定:共同被告 = [原机关 + 复议机关(不作为)]
   □ 委托执法:被告 = [委托机关]
   □ 派出机构:被告 = [___](视授权而定)
   □ 主体变更:被告 = [继续行使职权的机关 / 作出撤销决定的机关]

4. 共同被告:
   □ 是:[XX + XX]
   □ 否

5. 法定名称核查:
   [✓/✗] 机关全称准确
   [✓/✗] 住所地准确
───────────────────────────────
被告列表:[XXX,XXX,XXX...]
法律依据:[行政诉讼法第 26 条]
═══════════════════════════════════════

Frequently asked questions

What does the Defendant Identification AI skill do?

行政诉讼被告确定——根据行政行为主体层级确定被告(原机关/复议机关/共同被告)。 适用情形:拟起诉行政行为时,确定正确的被告。 核心:被告层级判断 + 复议维持 vs 改变的区别 + 委托执法的被告。

Why use Defendant Identification on TypingMind?

Because you install it once and use it with any model. Defendant Identification is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Defendant Identification in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/vivy-yi/Greater-China-Legal/tree/main/plugins/legal-scenes/administrative-litigation/skills/defendant-identification. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Defendant Identification?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Defendant Identification?

As many as you like. As long as a model supports skills, you can use Defendant Identification with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Defendant Identification AI skill free?

It is published on GitHub by vivy-yi. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇