一键导入
spinder-component-creation
Create new Lit-based components for the Spinder expense tracking app, following the project's coding standards and architecture patterns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create new Lit-based components for the Spinder expense tracking app, following the project's coding standards and architecture patterns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create and manage expense categorization buckets in the Spinder app, including filtering logic and data aggregation.
Debug issues in the Spinder expense tracking app, including transaction processing, UI rendering, and data flow problems.
Create, dispatch, and listen to custom events in the Spinder app using the Zod-validated event system.
Create new pages and routes in the Spinder application, following the routing architecture and page component patterns.
Handle CSV parsing, transaction validation, and data processing for the Spinder expense tracking app.
Create new Zod-based type definitions for the Spinder expense tracking app, following the project's type organization patterns.
| name | spinder-component-creation |
| description | Create new Lit-based components for the Spinder expense tracking app, following the project's coding standards and architecture patterns. |
This skill helps create new Lit components for the Spinder web application, ensuring they follow the established patterns and coding standards.
Use this skill when you need to:
All Spinder components should:
src/client/component.<component-name>.tsLitElement with proper decoratorsglobalStyles from ./styles.global.ts./context.js when neededSpinder<ComponentName>@customElement("spinder-<component-name>")globalStyles and component-specific CSSTemplateResultimport { html, css, LitElement, TemplateResult } from "lit";
import { customElement, property, state } from "lit/decorators.js";
import { consume } from "@lit/context";
import { globalStyles } from "./styles.global.js";
// Import contexts, types, events as needed
@customElement("spinder-example-component")
export class SpinderExampleComponent extends LitElement {
static override styles = [
globalStyles,
css`
/* Component-specific styles */
`,
];
// Properties and state
@property({ type: String })
someProp: string = "";
// Context consumption
@consume({ context: transactionContext, subscribe: true })
transactions: Transaction[] = [];
// Event handlers and methods
override render(): TemplateResult {
return html`
<!-- Component template -->
`;
}
}
static/app.css for colors, sizes, etc.npm run build and checking for errors