feat: build skill to build eslint rule - #4985
Conversation
🦋 Changeset detectedLatest commit: 82af751 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
The SKILL.md document provides a useful workflow guide but contains several substantive bugs in its code templates that would cause compile-time or runtime failures if followed literally: incorrect import paths (missing .js ESM extensions and wrong MemberNode source package), a fabricated context.getDiagnostic() API, a missing step to add the diagnostic interface and Diagnostic union entry in src/types.ts, a missing context argument in createJsonFixer calls, and a createInvalidTestCAP call that omits the required changes array argument. These issues should be addressed before the skill is used to generate new rules.
|
One more thing I noticed: it hallucinates "Further Reading" links to documentation from the rule doc .md file. Maybe more guidance needed there. |
Co-authored-by: Alina Govoruhina <125539086+AlinaGovoruhina@users.noreply.github.com>
|



Description
This PR adds a new AI agent skill for developing ESLint rules in the
@sap-ux/eslint-plugin-fiori-toolspackage, along with minor cleanup of unused diagnostic fields.New AI Agent Skill (
.agents/skills/fiori-eslint-dev/)Adds a comprehensive, step-by-step guide (
SKILL.md) and reference files to automate the full ESLint rule development workflow. The skill covers:references/annotation.md— OData annotation rules with two access patterns (page.lookupvsbuildAnnotationIndexKey)references/manifest-json.md—manifest.jsonproperty validation rulesreferences/flex-change.md— V2.changefile validation rulesreferences/js-rule.md— standard JS/TS ESLint rules (no Fiori project model)Each reference file lists exact files to read in parallel, provides ready-to-use rule and test templates, and includes a debug checklist.
Bug Fix in
diagnostics.tsandsap-no-data-field-intent-based-navigation.tsfileandannotationPathfields from theNoDataFieldIntentBasedNavigationdiagnostic interfaceFioriAnnotationSourceCodeguard in the rule'scheck()method to prevent it from running against non-annotation source code typesType of change
How have you tested?
The skill files are documentation/tooling only with no runtime impact. The diagnostic field removals and source code guard are verified by existing unit tests in the package.
Checklist:
The code conforms to the general development principles
Supplied as many details as possible on this change
The code is easy to read and maintainable by others
Corresponding changes to the documentation has been done
Already existing and new unit tests pass locally
🔄 Regenerate and Update Summary
PR Bot Information
Version:
1.29.18anthropic--claude-4.6-sonnetpull_request.edited73ffd3f0-916b-11f1-82a5-83037507a921