add-site-rules SKILL.md skillA

add-site-rules from rxliuli/imp-translate is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add rxliuli/imp-translate/add-site-rules@git:20260429.a8e79d2

Pins git:20260429.a8e79d2 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
rxliuli/imp-translate
Path
.claude/skills/add-site-rules/SKILL.md
Versions recorded
2
Latest version
git:20260429.a8e79d2, committed Apr 29, 2026
First version recorded
Apr 29, 2026
Size
7,394 bytes
Repository stars
21
License
GPL-3.0

Investigate a live page via Claude for Chrome and add missing site-specific include/skip rules to lib/rules.txt. Invoke with /add-site-rules <URL>.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Add site rules from a live URL

The user gives a URL where Imp Translate currently mis-handles a site (some region not translated, or unrelated UI translated). Use claude-in-chrome to open the page, inspect the DOM, compare against `lib/rules.txt`, and add the minimal selectors needed.

Rule syntax recap (uBlock-style):

- `domain##selector` — skip (do not translate) matching elements
- `domain#+#selector` — include (only translate inside) matching elements
- `entity.*` — match any TLD via PSL (e.g. `google.*` covers `google.com`, `google.com.hk`)

## Pick the mode first: include vs skip

Choose the mode where the rule set is **bounded** for that site. Don't toggle modes site-by-page — the site picks one mode, the other is used only for refinements.

- **Include (`#+#`) — component-based platforms/apps**. Translatable content lives in named, repeatable containers; the rest is heavy localized chrome that changes often. Examples: Twitter/X, YouTube, Reddit, Instagram, TikTok, LinkedIn, Discord, Twitch, StackOverflow, GitHub issues/PRs. Decision: "are post/video/comment containers named and stable?" → yes → include.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add rxliuli/imp-translate/add-site-rules@sha256:3b3fed16c4f62d18

The line at the top of this page pins the label git:20260429.a8e79d2, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_7cw2qcn5rguopeye.svg)](https://markdownregistry.com/a/art_7cw2qcn5rguopeye)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, all committed on Apr 29, 2026.

versioncommittedcommitsizeaudit
git:20260429.a8e79d2 latest2026-04-29 a8e79d2 7,394 BA view · diff
git:20260429.b642c072026-04-29 b642c07 4,291 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (7394 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

rxliuli/imp-translate · 21 stars · license GPL-3.0 · pushed 2026-10-05 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_7cw2qcn5rguopeye
GET https://markdownregistry.com/api/v1/resolve?ref=rxliuli/imp-translate/add-site-rules
GET https://markdownregistry.com/api/v1/blob/3b3fed16c4f62d18d79ff9c3e219cf03ea66114d3b6704469380adfccbdbcf38

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

Browse by kind, by grade A, or by owner.