Aliyun Tag Foundation logo

Aliyun Tag Foundation

Community
yzstory
aliyun-tag-foundation

标签治理数据基座 — 资源发现、覆盖率分析、合规检查与批量打标。触发词:标签覆盖率、资源盘点、批量打标、标签合规

Overview

Publisheryzstory
Repositorypomeloclaw
Skill namealiyun-tag-foundation
Stars
59
Forks
4
Bundled files
2
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.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by yzstory on GitHub. Read the source before you install it.

Installation

Install the Aliyun Tag Foundation 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/yzstory/pomeloclaw/tree/main/workspace/skills/finops_skills/aliyun-tag-foundation
  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/yzstory/pomeloclaw.git /tmp/pomeloclaw
mkdir -p .claude/skills
cp -r /tmp/pomeloclaw/workspace/skills/finops_skills/aliyun-tag-foundation .claude/skills/aliyun-tag-foundation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Aliyun Tag Foundation 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 Aliyun Tag Foundation 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 Aliyun Tag Foundation 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.

aliyun-tag-foundation — 标签治理数据基座

标签治理的数据基座技能,提供资源发现、标签规则管理、覆盖率分析、合规检查和批量打标等核心能力。基于资源中心(Resource Center)和统一标签 API,2 个全局 SDK 覆盖 200+ 资源类型。

核心能力

  1. 标签规则管理 — 加载/保存标签治理规则(必选 Key、值白名单、命名规范)
  2. 资源发现 — 跨产品跨区域盘点云资源,支持聚合统计模式
  3. 标签能力发现 — 查询各资源类型支持的标签能力项
  4. 覆盖率报告 — 按产品/按 Key 分析必选标签的覆盖情况
  5. 差距分析 — 交叉比对资源与标签能力,输出治理优先级
  6. 合规检查 — 综合检查覆盖率和值一致性
  7. 批量打标 — 使用统一 Tag API 为资源添加标签

功能列表

操作工具函数风险等级说明
加载标签规则tagf_load_rulesLOW查看当前生效的标签治理规则
保存标签规则tagf_save_rulesMEDIUM将用户确认的规则持久化到本地
资源发现tagf_discover_resourcesLOW跨产品跨区域盘点,支持聚合统计模式
标签能力发现tagf_discover_capabilitiesLOW查询各资源类型的标签能力项
覆盖率报告tagf_coverage_reportLOW按产品/按 Key 分析覆盖率
差距分析tagf_gap_analysisLOW交叉比对资源与标签能力,输出治理计划
合规检查tagf_compliance_checkLOW综合检查覆盖率和值一致性
批量打标tagf_batch_tagMEDIUM统一 Tag API 批量打标,支持 dry_run

使用前提

  • 阿里云账号已开通资源中心服务
  • RAM 权限需包含:
    • resourcecenter:SearchResources(资源发现)
    • resourcecenter:GetResourceCounts(聚合统计)
    • tag:ListSupportResourceTypes(标签能力查询)
    • tag:TagResources(打标操作)

典型使用流程

1. 制定标签规则

→ tagf_load_rules()
  查看当前规则

→ tagf_save_rules(
    required_keys=["env", "team", "owner"],
    key_whitelist={"env": ["dev", "test", "staging", "prod"]}
  )
  保存确认后的规则

2. 存量资源盘点

→ tagf_discover_resources(aggregate_mode=True)
  服务端聚合统计(适合大规模资源)

→ tagf_discover_resources(
    resource_types=["ACS::ECS::Instance"],
    regions=["cn-hangzhou"]
  )
  获取资源明细

3. 覆盖率分析与合规检查

→ tagf_coverage_report()
  按产品/按 Key 分析覆盖率

→ tagf_compliance_check(required_keys=["env", "team"])
  综合检查覆盖率和值一致性

4. 差距分析与批量治理

→ tagf_gap_analysis()
  输出可治理/不可治理分类和优先级

→ tagf_batch_tag(resources=[...], tags={"env":"prod"}, dry_run=True)
  预览打标计划

→ tagf_batch_tag(resources=[...], tags={"env":"prod"}, dry_run=False)
  执行打标

规则配置文件

路径:~/.copaw/data/tag_pipeline_rules.json

json
{
  "required_keys": ["env", "team", "owner"],
  "key_whitelist": {
    "env": ["dev", "test", "staging", "prod"]
  },
  "key_naming_pattern": "^[a-z][a-z0-9_-]*$",
  "description": "标签治理规则"
}

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Aliyun Tag Foundation AI skill do?

标签治理数据基座 — 资源发现、覆盖率分析、合规检查与批量打标。触发词:标签覆盖率、资源盘点、批量打标、标签合规

Why use Aliyun Tag Foundation on TypingMind?

Because you install it once and use it with any model. Aliyun Tag Foundation 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 Aliyun Tag Foundation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/yzstory/pomeloclaw/tree/main/workspace/skills/finops_skills/aliyun-tag-foundation. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Aliyun Tag Foundation?

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 Aliyun Tag Foundation?

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

Is the Aliyun Tag Foundation AI skill free?

It is published on GitHub by yzstory. 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 👇