Conversation
✅ Deploy Preview for kongdeveloper ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
Adds a generic Claude skill to guide contributors in writing/editing how-to guides for developer.konghq.com when no product-specific skill applies, standardizing sources, workflow, style, and validation expectations across products.
Changes:
- Introduces a fallback
.claudeskill for authoring how-to guides underapp/_how-tos/. - Defines required authoritative sources (schemas, plugin docs, API specs, etc.) and a gated 5-step workflow (context → plan → write → review → cross-link).
- Codifies style/frontmatter/body/validation rules plus an explicit pre-output checklist.
|
|
||
| These rules have no exceptions. | ||
|
|
||
| - **Contractions are fine** throughout — write naturally. The only exception is danger or |
There was a problem hiding this comment.
The skill says to replace every em-dash, but this file itself contains em-dash characters (—), which can cause the model to copy the exact punctuation you’re trying to prohibit; please replace the em-dashes in this skill with commas/periods (or a plain hyphen) for consistency.
| - **Contractions are fine** throughout — write naturally. The only exception is danger or | |
| - **Contractions are fine** throughout, write naturally. The only exception is danger or |
| - **API specs:** `/api-specs` contains the source of truth for public APIs. If the how to is for a new feature, ask the contributor for a link to the schema with the fields. | ||
| - **Terraform resources:** If the how-to is for Terraform, the following are the source of truth for public Terraform resources: https://github.com/Kong/terraform-provider-konnect, https://github.com/Kong/terraform-provider-konnect-beta, https://github.com/Kong/terraform-provider-kong-gateway, https://github.com/Kong/terraform-provider-kong-mesh. If the how to is for a new feature, ask the contributor for a link to the Terraform resource with the updated fields. |
There was a problem hiding this comment.
api-specs is a repo directory (no leading slash), so /api-specs looks like an absolute path that won’t exist in most tooling; also “the how to” should be hyphenated as “the how-to” for consistency with the rest of the skill.
| - **API specs:** `/api-specs` contains the source of truth for public APIs. If the how to is for a new feature, ask the contributor for a link to the schema with the fields. | |
| - **Terraform resources:** If the how-to is for Terraform, the following are the source of truth for public Terraform resources: https://github.com/Kong/terraform-provider-konnect, https://github.com/Kong/terraform-provider-konnect-beta, https://github.com/Kong/terraform-provider-kong-gateway, https://github.com/Kong/terraform-provider-kong-mesh. If the how to is for a new feature, ask the contributor for a link to the Terraform resource with the updated fields. | |
| - **API specs:** `api-specs` contains the source of truth for public APIs. If the how-to is for a new feature, ask the contributor for a link to the schema with the fields. | |
| - **Terraform resources:** If the how-to is for Terraform, the following are the source of truth for public Terraform resources: https://github.com/Kong/terraform-provider-konnect, https://github.com/Kong/terraform-provider-konnect-beta, https://github.com/Kong/terraform-provider-kong-gateway, https://github.com/Kong/terraform-provider-kong-mesh. If the how-to is for a new feature, ask the contributor for a link to the Terraform resource with the updated fields. |
| echo ' | ||
| terraform { | ||
| required_providers { | ||
| konnect = { | ||
| source = "kong/konnect" | ||
| } | ||
| } | ||
| } | ||
|
|
||
| provider "konnect" { | ||
| server_url = "https://us.api.konghq.com" | ||
| } | ||
| ' > auth.tf |
There was a problem hiding this comment.
This example is labeled as an hcl code block but contains a shell echo command plus HCL, which is likely to confuse contributors (and syntax highlighting); consider either making it a sh block or splitting it into a sh block that writes a file and a pure hcl block with the actual Terraform content.
| echo ' | |
| terraform { | |
| required_providers { | |
| konnect = { | |
| source = "kong/konnect" | |
| } | |
| } | |
| } | |
| provider "konnect" { | |
| server_url = "https://us.api.konghq.com" | |
| } | |
| ' > auth.tf | |
| terraform { | |
| required_providers { | |
| konnect = { | |
| source = "kong/konnect" | |
| } | |
| } | |
| } | |
| provider "konnect" { | |
| server_url = "https://us.api.konghq.com" | |
| } |
What did you ask it to do in your test? That way we can replicate it as we edit the file. We should add some changes based on your findings:
This is all uncharted territory, but what if we defined what exact inputs we need from a user at first? Like, product area first, then any sort of PRD's, or links to Github PRs. Then we ask Claude to read/review docs in the product area. This way we can avoid a user just saying "Write a how to guide about Vault", and instead encourage a user to provide as much context as possible. Also, you have instructions for series, I wonder if we can remove that in favor of getting individual how-to's correct first. Let me know what you think, if you give me the prompt you used I'm happy to try it too. |
|
@Guaris Here is the prompt I used:
"what if we defined what exact inputs we need from a user at first? Like, product area first, then any sort of PRD's, or links to Github PRs. Then we ask Claude to read/review docs in the product area." I like this idea. I'll adjust the skill with your feedback and remove the info about series. |
Signed-off-by: Diana <75819066+cloudjumpercat@users.noreply.github.com>
Signed-off-by: Diana <75819066+cloudjumpercat@users.noreply.github.com>
a886f1c to
efe3726
Compare
…edback Signed-off-by: Diana <75819066+cloudjumpercat@users.noreply.github.com>
Description
Based on Tomek's AI Gateway how to skill, this one expands it to be more of a "catchall" in case a product-specific how to skill doesn't exist.
I modified the instructions for lead in sentences from Tomek's based on Lena's PR reviews for me where she wanted a lead in sentence to give context about why we were doing something.
Notes from testing:
Preview Links
Checklist
descriptionentry in frontmatter.