google/skia-buildbot-pinpoint webui contributor
>- Provides instructions and coding guidelines on how to contribute to the Pinpoint Web UI Angular project in the /pinpoint/webui directory. Any code change in this directory should adhere to this skill.
npx skills add https://github.com/google/skia-buildbot --skill pinpoint webui contributor
Use this skill when making changes under buildbot/pinpoint/webui.
standalone .html file. Do not inline HTML strings within the component's
TypeScript (.ts) file using the template property.
create a dedicated .css (or .scss) file. Never inline style declarations
inside the component's TypeScript file using the styles property.
style attributefor complex styling. Simple, single-purpose styling adjustments that are unique
to the element (e.g., adding a margin-top to a spacer or divider) are
acceptable inline. However, if an element requires multiple style declarations
or reusable rules, define them as a class in the component's stylesheet instead.
system, color palettes, utility variables (var(--mat-...)), and standard
paddings/densities. Avoid introducing custom hardcoded colors or bespoke layout
metrics. This ensures seamless light and dark mode support.
UI element, check if a suitable component exists in the Angular Material library
(e.g., mat-table, mat-select, mat-dialog). Reusing standard elements
provides built-in accessibility (a11y) and keyboard navigation.
serve a single, clear purpose. If a component handles too many unrelated UI
elements, complex operations, or distinct workflows, split it into smaller,
specialized sub-components.
by delegating complex business logic, state management, and API data-fetching
operations to dedicated Angular services. Components should primarily focus on
managing the view presentation and user interactions.
pipes, and directives into shared or common directories. This prevents code
duplication and enables seamless sharing across different feature components.
for states, types, categories, or configuration values throughout the codebase.
Define and use strongly-typed TypeScript enums or union types to improve
readability, auto-completion, and refactoring safety.
Take google/skia-buildbot-pinpoint webui contributor from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.