RAG-enhanced compliance Q&A with regulatory interpretation guardrails, source attribution, and escalation triggers.
Security
regmapper
Try itBrowse, search, and annotate regulations via the RegMapper API. Use when asked about regulations, rules, compliance requirements, project annotations, or comparing regulation versions.
What it does
Browse, search, and annotate regulations via the RegMapper API. Use when asked about regulations, rules, compliance requirements, project annotations, or comparing regulation versions.
The skill document
Regulatory research with RegMapper API
Use the regmapper skill to browse and research laws and regulations in the RegMapper database. You can search for regulations, explore their chapter and rule structure, and read detailed rule content. You can also access project-scoped comments to gain insights from human reviewers. If you have write access to a project, you can add or update comments and set their status and category to enrich the dataset for future use. Additionally, you can compare different versions of a regulation and get a diff of changed rules.
Authentication
-
Header for all API calls:
Authorization: Token- Replace `` with your actual API token.
- Without this header or with an invalid token:
401 Unauthorized
-
Storing the token:
- Store the token in
skills/.envasREGMAPPER_API_TOKENso it is loaded automatically:REGMAPPER_API_TOKEN=your_token_here
- Store the token in
-
Base URL:
https://regmapper.net/api/v1
Obtaining an API Token
To use this skill, you need a RegMapper API token:
- Visit https://www.regmapper.net/account/signup/ to register, confirm your email, and request a free account, then log in.
- Go to User profile (https://www.regmapper.net/users/user/myprofile/) → API Token
- Generate a new token (keep it secret!)
- Store it in
skills/.envas shown above
Security Note: Never commit your .env file or share your token publicly.
*Note: For creating comments or using advanced features, you will need to create a project through the web interface first (create project) *
Token Storage & Setup
Store only REGMAPPER_API_TOKEN in skills/.env; create the file if missing. Add .env to .gitignore.
Troubleshooting
401: Token invalid/expired → regenerate at RegMapper. 403: No project access → contact project admin.
API Specification
The full OpenAPI specification is included as openapi.json in this skill package. See https://www.regmapper.net/api/v1/schema/ for the live schema reference.
Pagination
List endpoints are paginated (page query param, default page size 100).
Envelope: count, next, previous, results.
Endpoints
-
GET /projects/- Returns accessible projects.
- Fields:
id,name,auth(readorwrite). - Only call comment write endpoints when
auth=write.
-
GET /projects/{id}/- Returns project metadata and project-specific values for comments.
- Fields:
id,name,reference,description,auth,categories(id,category),statuses(id,status). - Requires
view_projecton that project (403otherwise). - Call this before create/update comment to obtain valid status and category IDs.
-
GET /projects/{id}/regulations/- Returns all regulations linked to that project.
- Fields:
regid,title,shortname.
-
GET /projects/{id}/statuses/- Returns statuses linked to that project.
- Fields:
id,status.
-
GET /projects/{id}/categories/- Returns categories linked to that project.
- Fields:
id,category.
-
GET /regulations/- Search/filter:
title,shortname,versdate,status,regulator,language. - Returns all statuses when
statusis omitted. Addstatus=currentto restrict to current versions only.
- Search/filter:
-
GET /regulations/{regid}/rules/overview/- Lightweight chapter/rule overview.
-
GET /regulations/{regid}/rules/- Detailed rules (optional
chapter,rule,page). - Use the numeric rule
idfrom results when creating comments.
- Detailed rules (optional
-
GET /regulations/compare/{obs}/{new}/overview/and/rules/{rule}/{chapter}/- Compare two regulation versions; use overview to discover changed rule/chapter pairs, then call detailed.
- When calling compare detailed, always source
chapterfrom an overviewmergerow to avoid ambiguity. - Overview rows expose
agg(aggregated number of changed characters per rule) anddiff;sim,obs, andneware only available on detailed compare rows. - Overview response also includes
rules_any(rules with any project comments) andrules_current(rules with current-project comments) — useful for prioritizing which rules to inspect. - Detailed response includes
comment_refs(list of{id, project_id, rule_id, status_id}) — use to detect existing annotations before creating a duplicate. - Detailed response includes
orig_urlandcopyright_url— URLs to the source document and copyright page for citations. - In detailed results,
changes_htmluses semantic diff tags:= added text,= removed text. - Color styles in HTML are presentational only; for robust bot logic prefer
diff,sim, andobs/newtext fields.
-
GET /comments/?project=- Read comments for one project.
- Optional filters:
regulation|regulations,category|categories,status|statuses,q|text. - Optional toggle:
include_note=true(include full note in list/search response). - Missing
project→400; no project access →403. - Default list payload is lightweight: includes
note_preview(50 chars) and does not includerule_content.
-
GET /comments/{id}/- Read exactly one comment with full content.
- Includes full
noteand fullrule_content. - Requires
view_projecton the comment's project.
-
POST /comments/- Create comment.
- Payload:
project,rule, optionalnote, optionalstatus, optionalcategory(list of category ids). - Requires
change_projectonproject. created_byandchanged_byare set from the token user automatically.
-
PATCH /comments/{id}/- Partial update of
note,status,category. - Requires
change_projecton the comment's project. changed_byis set from the token user automatically.
- Partial update of
Recommended Bot Flow
- Call
/projects/and pick a project withauth=readorauth=write. - Call
/projects/{id}/regulations/,/projects/{id}/statuses/, and/projects/{id}/categories/for linked metadata. - Use
/comments/?project=for search/list (compact response; addinclude_note=trueif needed). - Use
/comments/{id}/when full note and rule text are required. - Only if
auth=write, use comment create/update endpoints.
Comparing regulation versions
Goal: Identify changes between two versions of a regulation.
Steps:
-
Find the older version:
curl -H "Authorization: Token " "https://regmapper.net/api/v1/regulations/?shortname=&status=obsolete"→ Note the
regidandversdateof the older version. -
Find the current version:
curl -H "Authorization: Token " "https://regmapper.net/api/v1/regulations/?shortname=&status=current"→ Note the
regidandversdateof the current version. -
Get comparison overview:
curl -H "Authorization: Token " "https://regmapper.net/api/v1/regulations/compare/{obs_regid}/{new_regid}/overview/"→ Check the
difffield:"diff"= changes present,"same"= no changes. -
Get detailed changes: For each changed rule (
diff: "diff"):curl -H "Authorization: Token " "https://regmapper.net/api/v1/regulations/compare/{obs_regid}/{new_regid}/rules/{rule}/{chapter}/"→ Analyse
changes_html(= added,= removed) andsim(similarity score).
Note:
agg= number of changed characters (useful for prioritization).- Always use
chapterfrom themergerow of the overview to avoid ambiguity.
Related skills
Track official government documents in the Chinng AI-Agent Portal — US Federal Register, EU EUR-Lex, and Japanese agency feeds. Use for regulatory monitoring, comment deadlines, effective dates, and primary-source policy reading.
Generate a prioritised compliance checklist for GDPR, SOC 2, ISO 27001, FCA, HIPAA, or other frameworks with a gap analysis. Use when asked for a compliance...
Map document sections to compliance framework controls with confidence scoring. Produces bidirectional mappings for gap analysis.
Handelsregister AI (handelsregister.ai). Use this skill for ANY Handelsregister AI request — searching and reading data. Whenever a task involves Handelsregister AI, use this skill instead of calling the API directly.
Turn policies into an askable digital-human compliance course.