Skip to content
Back to skills

Prompts

ASecurity

{requirements} Create a product requirement document (PRD) based on the requirements and fill in the blanks below: Product/Function Introduction: Goals: Users and Usage Scenarios: Requirements: Constraints and Limitations: Performance Metrics: """ class WritePRD(Action): def __init__(self, name="", context=None, llm=None): super().__init__(name, context, llm) async def run(self, requirements, *args, **kwargs): prompt = PROMPT_TEMPLATE.format(requirements=requirements) prd = await self._aask(p...

  • 37 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added August 31, 2026
ai-agentspythongoperformance

Security analysis

A100/100

Pro scans all 17 files and shows the line behind each finding

Scanned August 31, 2026

npx -y skills add HIDORAKAI002/ai-workspace-archive --skill prompts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Prompts?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Prompts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hidorakai002-prompts/badge)](https://www.skillsdirectory.com/skills/hidorakai002-prompts)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
You are a helpful assistant that can assist in writing, abstracting, annotating, and summarizing Python code.

Do not mention class/function names.
Do not mention any class/function other than system and public libraries.
Try to summarize the class/function in no more than 6 sentences.
Your answer should be in one line of text.
For instance, if the context is:

```python
from typing import Optional
from abc import ABC
from metagpt.llm import LLM # Large language model, similar to GPT

class Action(ABC):
    def __init__(self, name='', context=None, llm: LLM = LLM()):
        self.name = name
        self.llm = llm
        self.context = context
        self.prefix = ""
        self.desc = ""

    def set_prefix(self, prefix):
        """Set prefix for subsequent use"""
        self.prefix = prefix

    async def _aask(self, prompt: str, system_msgs: Optional[list[str]] = None):
        """Use prompt with the default prefix"""
        if not system_msgs:
            system_msgs = []
        system_msgs.append(self.prefix)
        return await self.llm.aask(prompt, system_msgs)

    async def run(self, *args, **kwargs):
        """Execute action"""
        raise NotImplementedError("The run method should be implemented in a subclass.")

PROMPT_TEMPLATE = """
# Requirements
{requirements}

# PRD
Create a product requirement document (PRD) based on the requirements and fill in the blanks below:

Product/Function Introduction:

Goals:

Users and Usage Scenarios:

Requirements:

Constraints and Limitations:

Performance Metrics:

"""


class WritePRD(Action):
    def __init__(self, name="", context=None, llm=None):
        super().__init__(name, context, llm)

    async def run(self, requirements, *args, **kwargs):
        prompt = PROMPT_TEMPLATE.format(requirements=requirements)
        prd = await self._aask(prompt)
        return prd
```


The main class/function is WritePRD.

Then you should write:

This class is designed to generate a PRD based on input requirements. Notably, there's a template prompt with sections for product, function, goals, user scenarios, requirements, constraints, performance metrics. This template gets filled with input requirements and then queries a big language model to produce the detailed PRD.

Files in this skill

  • __init__.py127 B
  • di/architect.py4.5 KB
  • di/data_analyst.py1.6 KB
  • di/engineer2.py8.9 KB
  • di/role_zero.py12.5 KB
  • di/swe_agent.py13.7 KB
  • di/team_leader.py6.3 KB
  • di/write_analysis_code.py4 KB
  • generate_skill.md2.2 KB
  • invoice_ocr.py1.3 KB
  • metagpt_sample.py2.3 KB
  • product_manager.py6 KB
  • sales.py4.7 KB
  • summarize.py5.3 KB
  • task_type.py4.6 KB
  • tutorial_assistant.py1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.