Skip to content

Commit a41edeb

Browse files
committed
add share section in article
1 parent f3d9836 commit a41edeb

7 files changed

Lines changed: 58 additions & 20 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,7 @@ logs
116116
/playwright-report/
117117
/blob-report/
118118
/playwright/.cache/
119+
120+
121+
.agents/skills
122+
.playwright-cli

.playwright/cli.config.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"browser": {
3+
"browserName": "chromium",
4+
"launchOptions": {
5+
"channel": "chromium"
6+
}
7+
}
8+
}

app/components/c-share-post.vue

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22
<section class="sm:flex items-center">
33
<h4 class="landing-title title">Sharing is caring :</h4>
44
<div class="sm:flex">
5-
<a
6-
v-if="osShareEnabled"
7-
href="#"
8-
class="text-center sm:text-left block sm:inline-block sm:ml-4 mt-2 sm:mt-0 border-pimper border-2 text-pimper font-bold py-2 px-4 rounded"
9-
@click="nativeShare"
10-
>
11-
<span class="inline-block align-middle">Share this post</span>
12-
</a>
5+
<ClientOnly>
6+
<a
7+
v-if="osShareEnabled"
8+
href="#"
9+
class="text-center sm:text-left block sm:inline-block sm:ml-4 mt-2 sm:mt-0 border-pimper border-2 text-pimper font-bold py-2 px-4 rounded"
10+
@click="nativeShare"
11+
>
12+
<span class="inline-block align-middle">Share this post</span>
13+
</a>
14+
</ClientOnly>
1315
<a
1416
class="facebook text-center sm:text-left block sm:inline-block bg-gray-500 text-white font-bold py-2 px-4 rounded"
1517
:class="{ 'sm:ml-4 mt-2 sm:mt-0': true }"
@@ -49,6 +51,7 @@
4951
</template>
5052

5153
<script lang="ts" setup>
54+
import { ClientOnly } from "#components";
5255
import { computed } from "vue";
5356
5457
const props = defineProps<{

app/components/content/RichLink.server.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@
3535
</div>
3636
</div>
3737
<div class="w-1/2 border-l border-light p-4">
38-
<!-- <div class="flex items-center">
39-
<img v-if="data.favicon" class="w-4 h-4 object-cover block !mx-0 !mr-1" :src="data.favicon" />
40-
<div class="text-xs">{{ data.siteName }}</div>
41-
</div> -->
4238
<div class="line-clamp-2 text-sm font-bold">{{ data.title }}</div>
4339
<div class="text-xs line-clamp-3 mt-2">{{ data.description }}</div>
4440
</div>

app/pages/blog/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const { data: posts } = await fetchContent(`content-blog`, () => {
4444
.where({
4545
$not: techGemsQuery,
4646
})
47+
.where({ draft: false })
4748
.only(["title", "_path", "date", "image", "excerpt"])
4849
.sort({ date: -1 })
4950
.find();

content/blog/a-developers-guide-to-building-and-testing-ai-skills.md

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,20 +114,35 @@ In practice, each behavior becomes a small eval case:
114114
- some context, like the Vue version
115115
- a few rules that tell me whether the result is acceptable
116116

117-
In order to keep this article short, you can find a concrete example on my Github, have a look ! <RichLink href="https://github.com/adrienZ/skill-development-demo" title="adrienZ/skill-development-demo"></RichLink>
117+
In order to keep this article short, you can find a concrete example on my Github, have a look !
118+
119+
<RichLink aria-hidden="true" href="https://github.com/adrienZ/skill-development-demo" title="adrienZ/skill-development-demo"></RichLink>
120+
121+
To be honest, my knowledge on evals is quite new, there is things to improve, A/B testing and model temperature could be good way to make a skill more reliable. Current evals systems are also not as structured as traditional unit tests are, this may change in the future !
122+
123+
If you want to learn more about evals, here some references from people who knows what they are doing 😝
124+
- https://platform.claude.com/docs/en/test-and-evaluate/eval-tool
125+
- https://agentskills.io/skill-creation/evaluating-skills
126+
- https://developers.openai.com/blog/eval-skills
127+
128+
## Share it with the world
129+
130+
Your skill is now well written, validated and tested, how can you easily share it with your colleagues ?
131+
132+
Vercel created a skill registry called [skills.sh](https://www.skills.sh/). As per npm, it allows you to publish, audit, browse and install skills. It uses a `skills-lock.json` to easily setup your projects.
133+
134+
<RichLink href="https://www.skills.sh" title=""></RichLink>
135+
136+
If you work in private codebase, you can use any github url or filesystem path.
118137

119138
## Conclusion
120139

121140
Creating a skill can make a big difference in your everyday life, but they are "just" text and the ouput of you LLM can vary.
122141

123-
As developer we have tools to make this better
142+
As developer we have tools to make this better:
124143
- standard: Open agent skill
125144
- "linters": skill-ref, skill-validator
126145
- unit-test: evals
146+
- registry: similarly than npm, we have skills.sh
127147

128-
To be honest, my knowledge on evals is quite new, there is things to improve, A/B testing and model temperature could be good way to make a skill more reliable. Current evals systems are also not as structured as traditional unit tests are, this may change in the future !
129-
130-
If you want to learn more about evals, here some references from people who knows what they are doing 😝
131-
- https://platform.claude.com/docs/en/test-and-evaluate/eval-tool
132-
- https://agentskills.io/skill-creation/evaluating-skills
133-
- https://developers.openai.com/blog/eval-skills
148+
In other words: **treat your skills like code.**

skills-lock.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": 1,
3+
"skills": {
4+
"playwright-cli": {
5+
"source": "microsoft/playwright-cli",
6+
"sourceType": "github",
7+
"skillPath": "skills/playwright-cli/SKILL.md",
8+
"computedHash": "84495cfda62b6c012afc4cc34a0c35bfc7923ba35983b8c04ce4cace0f35a5d8"
9+
}
10+
}
11+
}

0 commit comments

Comments
 (0)