Skip to content

Conversation

@yihao03
Copy link
Contributor

@yihao03 yihao03 commented Jan 26, 2026

used opencode to read devGuide and generated relevant skills

What is the purpose of this pull request?

  • Documentation update
  • Bug fix
  • Feature addition or enhancement
  • Code maintenance
  • DevOps
  • Improve developer experience
  • Others, please explain:

Overview of changes:
This PR serves as part of the effort to develop an AI workflow for development.

We opted to use the open source SKILL.md standard as it is provider agnostic and has good community support.
Therefore we could adopt mainstream and popular workflows developed by others without being restricted to a specific provider (e.g. ClaudeCode).

Useful references in creating skills:

Anything you'd like to highlight/discuss:

Testing instructions:
Use AI Coding tools like OpenCode/ClaudeCode to start writing code. Check if the skills are being picked up
correctly and performs as desired

Proposed commit message: (wrap lines at 72 characters)
Add Agent Skills.


Checklist: ☑️

  • Updated the documentation for feature additions and enhancements
  • Added tests for bug fixes or features
  • Linked all related issues
  • No unrelated changes

Reviewer checklist:

Indicate the SEMVER impact of the PR:

  • Major (when you make incompatible API changes)
  • Minor (when you add functionality in a backward compatible manner)
  • Patch (when you make backward compatible bug fixes)

At the end of the review, please label the PR with the appropriate label: r.Major, r.Minor, r.Patch.

Breaking change release note preparation (if applicable):

  • To be included in the release note for any feature that is made obsolete/breaking

Give a brief explanation note about:

  • what was the old feature that was made obsolete
  • any replacement feature (if any), and
  • how the author should modify his website to migrate from the old feature to the replacement feature (if possible).

used opencode to read devGuide and generated relevant skills
@codecov
Copy link

codecov bot commented Jan 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.09%. Comparing base (01b8ce4) to head (6a24065).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2804   +/-   ##
=======================================
  Coverage   72.09%   72.09%           
=======================================
  Files         134      134           
  Lines        7411     7411           
  Branches     1587     1525   -62     
=======================================
  Hits         5343     5343           
- Misses       1940     2022   +82     
+ Partials      128       46   -82     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yihao03 yihao03 mentioned this pull request Jan 26, 2026
14 tasks
@yihao03 yihao03 marked this pull request as ready for review February 1, 2026 14:50
@gerteck
Copy link
Member

gerteck commented Feb 2, 2026

The references would definitely be useful for an AI agent to immediately have a good grasp of the codebase.

However, I am worried about the maintainability of the references.

  • Would having these references (e.g. referencing specific Node versions, method names, file names and directory structures) cause a maintainence overhead when we do refactoring?
  • What kind of measures do we have to make sure that the references do not drift from the features?

How do we find the balance of keeping a abstract and high level explanation of the design in the references enough to not have to add too much maintainability burden, but have it detailed enough to justify the token count and usefulness.

This is on top of the current developer documentation that has to be updated as well.

wdyt?

@yihao03
Copy link
Contributor Author

yihao03 commented Feb 3, 2026

Would it be useful if we created a subagent #2822 that updates the skills accordingly when changes are made to the devGuide? the solution to AI is... more AI...

@Harjun751 Harjun751 mentioned this pull request Feb 9, 2026
14 tasks
@yihao03
Copy link
Contributor Author

yihao03 commented Feb 9, 2026

closes #2822

Copy link
Contributor

@Harjun751 Harjun751 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor nits. Only problems are the prev/next page navigation buttons.

Also let's discuss on reverting the update-docs skill deletion

Copy link
Contributor

@Harjun751 Harjun751 Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that the update-docs was converted from a skill to a subagent. Maybe a good time to open up a dialogue on when to use a skill vs a subagent because I'm also not too sure haha.

My impression was to use a skill when there is a structured, repeatable task that an agent would see added benefit from having some "recipe" to follow, and to use subagents when there are tasks that we can modularize FOR the agent (e.g. abstract away some part of a task for an agent).

If my impression is correct then, I think the subagent route would be good for agents who when asked to perform a task (e.g. change behaviour of a particular function) will subsequently and continuously update documentation as-required. For example, agent goes okay, i finished the task now let me delegate to the update docs subagent to update docs as required.

But personally, I prefer to update documentation on my changes at the very end, so I can "take stock" right before I create a PR. Therefore I usually prevent my agents from updating documentation as they are working on the codebase.

I think both routes are acceptable (incrementally update docs vs big-bang update), so should we still keep the update-docs skill for developers such as myself? Correct me if any of my assumptions/impressions were wrong.


- Files scheduled for deletion/major refactor
- External patches (keep matching upstream)
- Files with minimal logic
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm why should they avoid migrating this? Seems to cut down on some of the busywork LOL

| CommonJS | TypeScript Equivalent | ES6 |
| --------------------------- | --------------------- | ------------------------------- |
| `module.exports = X` | `export = X` |`export default` (don't use) |
| `module.exports = { a, b }` | `export = { a, b }` |`export { a, b }` |
Copy link
Contributor

@Harjun751 Harjun751 Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @gerteck mentioned avoiding emojis in instruction files. No whimsy allowed 😭

* [Contribute to Documentation]({{baseUrl}}/devGuide/bootcamp/contributeToDocs.html)
* [Fix a Bug]({{baseUrl}}/devGuide/bootcamp/fixABug.html)
* [Implement a New Feature]({{baseUrl}}/devGuide/bootcamp/implementAFeature.html)
* AI Use
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps a bit nitpicky, but should the AI use section go under Development? As I assume readers would want to read about the general development workflow first.

Subagents are specialized AI agents designed to handle specific types of tasks autonomously. For detailed information about available subagents and how to use them, see the [Subagents](subagents.html) page.

{% from "njk/common.njk" import previous_next %}
{{ previous_next('../devGuide', 'skills') }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the previous page be pointing to the "implement a new feature" subsection of the onboarding header? Currently it's skipping back to the "contributing" section.

If moving the AI Use section below Development, we should remember to take this into account.

Yea this is pretty annoying 😓

* AI Use
* [Overview]({{baseUrl}}/devGuide/aiUse/index.html)
* [Skills]({{baseUrl}}/devGuide/aiUse/skills.html)
* [Agents]({{baseUrl}}/devGuide/aiUse/subagents.html)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Page title in frontmatter is "Subagents" but navigation just lists it as "Agent". Should we standardize to "Subagents"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants