AGENT SKILL
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.
- License 许可
- BSD-3-Clause
- 最近更新
- 2026-11-14
- Stars
- ★ 178
- Forks
- 90
01 前言 Front Matter
- name
- pinpoint webui contributor
- description
- 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.
02 资源文件 11
- 参考文档references/backend-api-design.md10.4 KB
- 参考文档references/backend-architecture.md12.2 KB
- 参考文档references/backend-authentication.md9.2 KB
- 参考文档references/backend-code-quality.md12.8 KB
- 参考文档references/backend-debugging.md18.5 KB
- 参考文档references/backend-devops.md10.5 KB
- 参考文档references/backend-mindset.md11.0 KB
- 参考文档references/backend-performance.md9.4 KB
- 参考文档references/backend-security.md7.9 KB
- 参考文档references/backend-technologies.md7.5 KB
- 参考文档references/backend-testing.md10.4 KB
03 SKILL.md 正文
Skia Buildbot Pinpoint Web UI Contributor Guidelines
Use this skill when making changes under buildbot/pinpoint/webui.
Guidelines
- Separate Component Templates: Always place component HTML templates in a standalone
.htmlfile. Do not inline HTML strings within the component's TypeScript (.ts) file using thetemplateproperty. - Separate Stylesheets: If a component requires custom styling, always create a dedicated
.css(or.scss) file. Never inline style declarations inside the component's TypeScript file using thestylesproperty. - Minimize Inline Styles: Avoid using the inline HTML
styleattribute for complex styling. Simple, single-purpose styling adjustments that are unique to the element (e.g., adding amargin-topto 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. - Utilize Angular Material Theming: Leverage the official Angular Material 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. - Prefer Standard Angular Material Components: Before building any custom 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. - Adhere to the Single Responsibility Principle: Design each component to 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.
- Extract Complex Business Logic to Services: Keep Angular components lean 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.
- Promote Reusable Components: Move common, highly reusable UI elements, pipes, and directives into shared or common directories. This prevents code duplication and enables seamless sharing across different feature components.
- Prefer Enums Over String Literals: Avoid hardcoding raw string literals 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.
04 同仓库更多 Skills
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.
★ 178
perf spanner migrations
Instructions for performing database schema migrations, modifying tables, and regenerating Spanner schema files in the Performance Dashboard (perf).
★ 178