协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
custom-skills【开发与工程】Guides PandasAI custom function skills, @pai.skill decorators, SkillType validation, global registry management, and skill-related troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a user wants PandasAI to make custom Python functions
available to generated analysis code through @pai.skill() or the
pandasai.ee.skills registry.
PandasAI custom skills are runtime functions for PandasAI-generated code. They
are not DisCo Agent Skills and are not SKILL.md directories.
@pai.skill() or @pai.skill("custom_name").SkillsManager between tests to avoid
duplicate-name leakage.../conversational-analysis/SKILL.md
after registration is correct.import pandasai as pai
@pai.skill()
def format_currency(amount: float) -> str:
"""Format a numeric amount as US dollars."""
return f"${amount:,.2f}"
references/api-reference.md for SkillType,
decorator forms, and SkillsManager methods.references/workflows.md for defining, naming,
testing, and clearing custom skills.references/troubleshooting.md for missing
docstrings, duplicate registry names, lambda functions, and terminology
confusion.scripts/skill_registry_smoke.py for a
no-LLM registry behavior smoke.../conversational-analysis/SKILL.md.../sandbox-and-security/SKILL.md.@pai.skill; these are unrelated skill systems.PandasAI documentation marks custom skills as an Enterprise feature for production use. For local experimentation and tests, the decorator and registry exist in the package. For production deployments, warn the user to confirm their PandasAI license/plan.
python sub-skills/custom-skills/scripts/skill_registry_smoke.py
The helper registers a small skill, verifies duplicate-name protection, verifies no-docstring failure behavior, and prints JSON. It does not need a real LLM or provider key.
SkillType(..., description=...) is
used directly.ValueError.SkillType objects, but remain callable.