Skip to content

Commit 125afb1

Browse files
cmungallclaude
andcommitted
Add configure-w3id skill
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 5e3bd07 commit 125afb1

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.claude-plugin/marketplace.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@
1818
"./ontology-access-kit"
1919
]
2020
},
21+
{
22+
"name": "configure-w3id",
23+
"description": "Skills for setting up a w3id for a linkml project",
24+
"source": "./",
25+
"strict": false,
26+
"skills": [
27+
"./configure-w3id"
28+
]
29+
},
2130
{
2231
"name": "editing-obo-ontologies",
2332
"description": "Skills and tools for editing OBO format ontologies",

configure-w3id/SKILL.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
description: A skill that will register a new w3id for a new github project.
3+
---
4+
5+
For context See https://github.com/linkml/linkml-project-copier/issues/127
6+
7+
First, it will be necessary to create a fork of https://github.com/perma-id/w3id.org
8+
9+
This might be in ~/repos/w3id.org - be sure it is up to date
10+
11+
make a PR with a new folder ./{{ project_name }}/
12+
13+
This will have two files:
14+
15+
.htaccess:
16+
17+
```
18+
Options +FollowSymLinks
19+
RewriteEngine on
20+
21+
# vocab/ end point
22+
RewriteRule ^vocab$ https://github.{{ github_org }}.io/{{ project_name }}/$1
23+
RewriteRule ^vocab\/(.*)$ https://github.{{ github_org }}.io/{{ project_name }}/$1 [R=301,L]
24+
25+
# schema submodules
26+
RewriteRule ^schema\/(.*)$ https://raw.githubusercontent.com/{{ github_org }}/{{ project_name }}/main/src/{{ project_name }}/$1 [R=301,L]
27+
28+
# Schema artefacts use raw Github URLs
29+
# if suffix is yaml, redirect to LinkML YAML schema
30+
RewriteRule ^{{ project_name }}.yaml$ https://raw.githubusercontent.com/{{ github_org }}/{{ project_name }}/main/src/{{ project_name }}/merged/merged_hierarchy.yaml [R=302,L]
31+
32+
# if suffix is schema.json, redirect to JSON Schema
33+
RewriteRule ^{{ project_name }}.schema.json$ https://raw.githubusercontent.com/{{ github_org }}/{{ project_name }}/main/project/jsonschema/{{ project_name }}.schema.json [R=302,L]
34+
35+
# if suffix is owl, redirect to OWL
36+
RewriteRule ^{{ project_name }}.owl.ttl$ https://raw.githubusercontent.com/{{ github_org }}/{{ project_name }}/main/project/owl/{{ project_name }}.owl.ttl [R=302,L]
37+
38+
39+
# Schema elements use Github Pages
40+
# Rewrite Base URL
41+
RewriteRule ^(.*)$ https://github.{{ github_org }}.io/{{ project_name }}/elements/$1 [R=302,L]
42+
```
43+
44+
a README.md that contains homepages (ie github), documentation links, plus contacts

0 commit comments

Comments
 (0)