Programming

Agent_Skills__The_Building_Blocks_for_Smarter_AI_Assistants

Agent Skills: The Building Blocks for Smarter AI Assistants

Agent Skills are specialized instruction packages that AI assistants can load on demand to perform specific tasks more effectively. Developed by Anthropic and now an open industry standard, these skills provide three key benefits: modularization of agent prompts, interoperability across different AI platforms, and specialized domain expertise. Users can install pre-defined skills from marketplaces like SkillHub and SkillsMP or create custom skills using SKILL.md files. However, security research has identified vulnerabilities in 26.1% of skills, including prompt injection and data exfiltration risks. Best practices include verifying package names and auditing skills before installation. The ecosystem continues to grow with enhanced security frameworks and industry-specific skill collections expected in the future.

Agent Skills: The Building Blocks for Smarter AI Assistants Read More »

Mastering Cursor Rules: A Comprehensive Guide to Enhancing Your AI-Assisted Coding Workflow

Cursor’s rules system transforms AI-assisted development by teaching the AI your project’s specific requirements, coding conventions, and architectural patterns. Rather than constantly correcting AI-generated code, you codify instructions once, ensuring consistent, contextually relevant suggestions that align with your standards.

The modern `.cursor/rules` approach—using separate `.mdc` files in a dedicated directory—surpasses the legacy single-file method. It enables version control, granular control through frontmatter metadata, and file-pattern matching via `globs`. Each rule includes a description, target files, and specific guidance.

Setting up is straightforward: use Command Palette’s “New Cursor Rule” or manually create `.mdc` files with frontmatter and markdown content. Multiple rules can address different codebase aspects—architecture, style, testing—while user rules apply globally across projects.

Effective rules require clarity and specificity. This investment delivers more accurate suggestions,

Mastering Cursor Rules: A Comprehensive Guide to Enhancing Your AI-Assisted Coding Workflow Read More »

How to Reload Custom Python Modules To Apply Changes in Visual Studio Code Using importlib

How to Reload Custom Python Modules To Apply Changes in Visual Studio Code Using importlib

When you program with Visual Studio Code (VS Code) and import a module in Python, the code in that module is only executed once, and subsequent imports of the same module will simply use the already imported module without re-executing its code. This means that if you modify a module after it has been imported, the changes will not be applied until you reload the module.

How to Reload Custom Python Modules To Apply Changes in Visual Studio Code Using importlib Read More »

A Work Day of A Data Scientist 1

A Day in The Life of A Data Scientist 1

Data scientists mine business value from data and need to possess skills in statistics and machine learning. Different industries in Taiwan have varying definitions for this position, but it primarily supports decision-making. Although the retail industry offers lower salaries, it provides a broad and interesting range of analysis, making it suitable for newcomers to enter the field.

A Day in The Life of A Data Scientist 1 Read More »

download-stock-historical-data-with-python-and-yahoo-finance-api

Retrieve Stock Historical Data With Python And Yahoo Finance API

Stock market data is valuable for analysis, but accessing it can be challenging. Yahoo Finance offers a convenient alternative, allowing users to search by stock symbols. While the free API occasionally encounters errors, it remains a viable option for manual retrieval. For automated tasks, try/except statements can help manage connection issues. Other API services exist, but verifying supported symbols is crucial before investing.

Retrieve Stock Historical Data With Python And Yahoo Finance API Read More »

R - Add Quotations For Elements In Vector

R Tutorial – Add Quotations Or Special Characters For Elements In Vector

Enhance your R coding with a simple function to add quotations or special characters to vector elements. Particularly useful for SQL queries in R, this feature streamlines data manipulation. The provided function, add_quotation_for_vector, allows customizable quotation marks for versatile applications in data science workflows.

R Tutorial – Add Quotations Or Special Characters For Elements In Vector Read More »