ui
Guidelines for implementing and maintaining user interface components
Install / Use
npx skills add skindhu/AI-TASK-MANAGERInstalls into whichever agent you are using.
Cursor Rules
Cursor IDE rules (v2)
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Skill content
View source on GitHubdescription: Guidelines for implementing and maintaining user interface components globs: scripts/modules/ui.js alwaysApply: false
User Interface Implementation Guidelines
Core UI Component Principles
-
Function Scope Separation:
- ✅ DO: Keep display logic separate from business logic
- ✅ DO: Import data processing functions from other modules
- ❌ DON'T: Include task manipulations within UI functions
- ❌ DON'T: Create circular dependencies with other modules
-
Standard Display Pattern:
// ✅ DO: Follow this pattern for display functions /** * Display information about a task * @param {Object} task - The task to display */ function displayTaskInfo(task) { console.log(boxen( chalk.white.bold(`Task: #${task.id} - ${task.title}`), { padding: 1, borderColor: 'blue', borderStyle: 'round' } )); }
Visual Styling Standards
-
Color Scheme:
- Use
chalk.bluefor informational messages - Use
chalk.greenfor success messages - Use
chalk.yellowfor warnings - Use
chalk.redfor errors - Use
chalk.cyanfor prompts and highlights - Use
chalk.magentafor subtask-related information
- Use
-
Box Styling:
// ✅ DO: Use consistent box styles by content type // For success messages: boxen(content, { padding: 1, borderColor: 'green', borderStyle: 'round', margin: { top: 1 } }) // For errors: boxen(content, { padding: 1, borderColor: 'red', borderStyle: 'round' }) // For information: boxen(content, { padding: 1, borderColor: 'blue', borderStyle: 'round', margin: { top: 1, bottom: 1 } })
Table Display Guidelines
-
Table Structure:
- Use
cli-table3for consistent table rendering - Include colored headers with bold formatting
- Use appropriate column widths for readability
// ✅ DO: Create well-structured tables const table = new Table({ head: [ chalk.cyan.bold('ID'), chalk.cyan.bold('Title'), chalk.cyan.bold('Status'), chalk.cyan.bold('Priority'), chalk.cyan.bold('Dependencies') ], colWidths: [5, 40, 15, 10, 20] }); // Add content rows table.push([ task.id, truncate(task.title, 37), getStatusWithColor(task.status), chalk.white(task.priority || 'medium'), formatDependenciesWithStatus(task.dependencies, allTasks, true) ]); console.log(table.toString()); - Use
Loading Indicators
-
Animation Standards:
- Use
orafor spinner animations - Create and stop loading indicators correctly
// ✅ DO: Properly manage loading state const loadingIndicator = startLoadingIndicator('Processing task data...'); try { // Do async work... stopLoadingIndicator(loadingIndicator); // Show success message } catch (error) { stopLoadingIndicator(loadingIndicator); // Show error message } - Use
Helper Functions
-
Status Formatting:
- Use
getStatusWithColorfor consistent status display - Use
formatDependenciesWithStatusfor dependency lists - Use
truncateto handle text that may overflow display
- Use
-
Progress Reporting:
- Use visual indicators for progress (bars, percentages)
- Include both numeric and visual representations
// ✅ DO: Show clear progress indicators console.log(`${chalk.cyan('Tasks:')} ${completedTasks}/${totalTasks} (${completionPercentage.toFixed(1)}%)`); console.log(`${chalk.cyan('Progress:')} ${createProgressBar(completionPercentage)}`);
Command Suggestions
-
Action Recommendations:
- Provide next step suggestions after command completion
- Use a consistent format for suggested commands
// ✅ DO: Show suggested next actions console.log(boxen( chalk.white.bold('Next Steps:') + '\n\n' + `${chalk.cyan('1.')} Run ${chalk.yellow('task-manager list')} to view all tasks\n` + `${chalk.cyan('2.')} Run ${chalk.yellow('task-manager show --id=' + newTaskId)} to view details`, { padding: 1, borderColor: 'cyan', borderStyle: 'round', margin: { top: 1 } } ));
Refer to ui.js for implementation examples and new_features.mdc for integration guidelines.
Related Skills
career-ops
72.4kOpen-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)
ai-job-search
43.6kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
41.6kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
guizang-ppt-skill
26.7kAI-agent Skill for generating polished HTML slide decks: editorial magazine and Swiss layouts, image prompts, social covers, and a WebGL/low-power presentation runtime.
Security Score
Audited on Sep 29, 2025
