Performance Review Writer
Run ID: 69cd317f3e7fb09ff16a8d602026-04-01HR
PantheraHive BOS
BOS Dashboard

Generate comprehensive performance reviews with goal assessments, competency ratings, development plans, and constructive feedback frameworks.

As a professional AI assistant, I have thoroughly researched the key components and best practices required to generate comprehensive performance reviews. This detailed output serves as a foundational guide for the "Performance Review Writer" workflow, ensuring all critical aspects from goal assessment to development planning and constructive feedback are covered.


Research Output: Generating Comprehensive Performance Reviews

This document outlines the essential elements, frameworks, and best practices for creating comprehensive, effective, and professional performance reviews. It focuses on integrating goal assessments, competency ratings, robust development plans, and constructive feedback mechanisms to foster employee growth and align individual performance with organizational objectives.

1. Introduction: The Purpose of Comprehensive Performance Reviews

A comprehensive performance review is more than just an annual formality; it's a strategic tool for talent management, employee development, and organizational success. Its primary purposes include:

  • Evaluating Performance: Objectively assessing an employee's achievements against set goals and expectations.
  • Identifying Strengths and Weaknesses: Pinpointing areas where an employee excels and areas requiring improvement.
  • Fostering Development: Guiding employees toward continuous learning and skill enhancement.
  • Providing Feedback: Delivering clear, actionable, and constructive feedback to drive behavioral change.
  • Aligning with Organizational Goals: Ensuring individual contributions support broader company objectives.
  • Informing HR Decisions: Providing data for promotions, compensation adjustments, and succession planning.

2. Core Components of a Comprehensive Performance Review

2.1. Goal Assessments

Description: This section evaluates an employee's progress and achievement against pre-defined individual or team goals set for the review period. Goals should ideally be SMART (Specific, Measurable, Achievable, Relevant, Time-bound).

Key Elements for Assessment:

  • Goal Statement: Clearly state each goal as originally defined.
  • Expected Outcome: What was the desired result or success metric?
  • Actual Outcome/Progress: Detail the employee's actual achievements, actions taken, and the results obtained. Provide specific examples, data, and quantifiable metrics where possible.
  • Analysis of Success/Shortfall: Explain why the goal was met, exceeded, or not met. Consider internal and external factors, resource availability, and employee effort.
  • Rating Scale: Assign a rating for each goal based on achievement (e.g., Exceeded Expectations, Met Expectations, Partially Met Expectations, Did Not Meet Expectations).
  • Future Implications: Discuss how the outcome of this goal impacts future objectives or areas of focus.

Actionable Insight: For each goal, ensure a narrative explanation accompanies the rating, providing context and evidence. Avoid generic statements; focus on specific behaviors and measurable results.

2.2. Competency Ratings

Description: This section assesses an employee's performance against a set of predefined organizational competencies (e.g., communication, teamwork, leadership, problem-solving, adaptability, technical skills, customer focus). These competencies describe the behaviors and skills essential for success in their role and within the company culture.

Key Elements for Rating:

  • Competency Definition: Briefly define each competency being assessed.
  • Behavioral Indicators: List specific, observable behaviors that exemplify different levels of performance for each competency.
  • Observed Performance: Describe specific instances or patterns of behavior where the employee demonstrated (or did not demonstrate) the competency. Use the STAR method (Situation, Task, Action, Result) or SBI (Situation, Behavior, Impact) method for examples.
  • Rating Scale: Apply a consistent rating scale across all competencies (e.g., 5-point scale: Needs Development, Developing, Meets Expectations, Exceeds Expectations, Outstanding; or 3-point scale: Below Expectations, Meets Expectations, Exceeds Expectations).
  • Justification: Provide clear, evidence-based justifications for each rating. Link ratings directly to observed behaviors and their impact.

Actionable Insight: Focus on behaviors, not personality. Ensure that the examples provided are recent, relevant, and directly tied to the competency definition.

2.3. Development Plans

Description: A forward-looking section that outlines specific actions and resources designed to enhance an employee's skills, address areas for improvement, and support career growth. It should be linked directly to the competency ratings and areas for development identified in the review.

Key Elements of a Development Plan:

  • Development Area: Clearly state the specific skill, competency, or area that needs development (e.g., "Improve presentation skills," "Enhance project management capabilities").
  • Desired Outcome: What specific, measurable change or improvement is expected? (e.g., "Confidently deliver presentations to senior leadership," "Successfully manage projects within budget and timeline").
  • Action Steps: List concrete, actionable steps the employee will take. Examples include:

* Formal training courses (internal/external)

* Mentorship or coaching

* Stretch assignments or special projects

* Self-study (books, online courses, articles)

* Shadowing colleagues

* Practicing specific behaviors

  • Resources Needed: Identify any support required (e.g., budget for training, time allocation, access to a mentor, specific tools).
  • Timeline: Set realistic start and completion dates for each action step.
  • Success Metrics: How will progress and successful completion of the development plan be measured? (e.g., feedback from peers, successful completion of a project, improved rating in a specific competency).
  • Manager Support: Outline how the manager will support the employee's development (e.g., regular check-ins, providing opportunities, removing roadblocks).

Actionable Insight: The development plan should be collaborative, realistic, and directly contribute to both the employee's career aspirations and the organization's needs.

2.4. Constructive Feedback Frameworks

Description: While feedback is integrated throughout the review, establishing a clear framework ensures feedback is delivered effectively, leading to understanding and positive change rather than defensiveness.

Key Principles and Frameworks for Delivering Feedback:

  • STAR (Situation, Task, Action, Result):

* Situation: Describe the specific context or background.

* Task: Explain the goal or objective that needed to be accomplished.

* Action: Detail the specific actions the employee took.

* Result: Describe the outcome of their actions, both positive and negative.

Example:* "In the Q3 project review meeting (S), when you were asked about the budget overrun (T), you clearly explained the unexpected material costs and the steps taken to mitigate future risks (A), which helped the team understand the situation and prevented further delays (R)."

  • SBI (Situation, Behavior, Impact):

* Situation: When and where the behavior occurred.

* Behavior: The specific observable action or statement.

* Impact: The effect of the behavior on others, the team, or the project.

Example:* "During last week's client presentation (S), when you interrupted the client twice to correct a minor detail (B), it appeared unprofessional and made the client feel unheard (I)."

  • Principles of Effective Feedback:

* Specific: Refer to concrete examples and behaviors, not generalizations.

* Actionable: Focus on behaviors that can be changed or improved.

* Timely: While reviews are periodic, the feedback should reflect observations made throughout the period.

* Balanced: Include both positive reinforcement (strengths) and areas for improvement.

* Forward-Looking: Focus on future growth and solutions rather than dwelling on past mistakes.

* Objective: Base feedback on facts and observations, not assumptions or personal opinions.

* Constructive Tone: Deliver feedback empathetically, focusing on development.

Actionable Insight: Frame feedback around observable behaviors and their impact. Always offer solutions or pathways for improvement rather than just pointing out problems.

3. General Best Practices for Writing Effective Performance Reviews

  • Objectivity and Evidence-Based: Rely on documented facts, observations, and data. Avoid vague language, hearsay, or personal bias.
  • Clarity and Conciseness: Use clear, direct language. Avoid jargon where possible.
  • Consistency: Apply standards and rating scales consistently across all employees and review periods.
  • Balance: Highlight strengths and achievements as prominently as areas for development. Start and end with positive affirmations.
  • Focus on Impact: Describe how the employee's actions (or inactions) impacted team goals, client satisfaction, or business outcomes.
  • Developmental Mindset: Frame feedback and discussions around growth, learning, and future potential.
  • Collaboration: While the manager writes the initial draft, the review process should ideally involve employee self-assessment and a collaborative discussion.
  • Legal Compliance: Ensure reviews are non-discriminatory, consistent, and adhere to company policies and labor laws.
  • Review Period Focus: Stick to the designated review period. Avoid bringing up issues from outside this timeframe unless directly relevant to ongoing performance.

4. Standard Structure of a Performance Review Document

A well-structured performance review document typically includes the following sections:

  1. Employee Information: Name, Title, Department, Manager, Review Period.
  2. Executive Summary/Overall Performance Summary: A brief narrative summarizing the employee's overall performance, key achievements, and general standing during the review period.
  3. Goal Achievement: Detailed assessment of each goal (as per Section 2.1).
  4. Competency Assessment: Detailed rating and justification for each competency (as per Section 2.2).
  5. Strengths & Key Accomplishments: A dedicated section highlighting the employee's top contributions and areas of excellence.
  6. Areas for Development/Improvement: Specific areas where the employee needs to grow or change behavior.
  7. Development Plan: Concrete actions and resources for growth (as per Section 2.3).
  8. Overall Performance Rating: A final, consolidated rating reflecting both goal achievement and competency performance.
  9. Employee Comments: A section for the employee to provide their perspective, agree or disagree with aspects of the review, or add additional context.
  10. Signatures: Spaces for the employee and manager to sign, indicating the review has been discussed.

gemini Output

Elevate Your Performance Reviews: Precision, Professionalism, and Impact

Crafting meaningful and effective performance reviews is a cornerstone of employee development and organizational success. Yet, the process can be time-consuming, challenging, and often lacks the consistency needed to truly drive growth.

Introducing our Performance Review Writer, your indispensable partner in generating comprehensive, insightful, and actionable performance evaluations. Say goodbye to generic templates and hours spent agonizing over phrasing. Our advanced system empowers you to deliver reviews that inspire, motivate, and clearly chart a path for future achievement.


Why Choose Our Performance Review Writer?

Our tool is designed to transform your review process from a daunting task into a strategic opportunity. We combine cutting-edge AI with best practices in HR and talent management to produce reviews that are:

  • Comprehensive: Covering all critical aspects of an employee's performance.
  • Objective: Focusing on data-driven insights and observable behaviors.
  • Actionable: Providing clear recommendations for growth and improvement.
  • Consistent: Ensuring fairness and standardization across your organization.
  • Time-Saving: Drastically reducing the effort required to produce high-quality reviews.

Core Components of Every Generated Review

Each performance review generated by our system is meticulously structured to provide a holistic view of an employee's contributions and potential.

1. Goal Assessments: Quantifiable Progress & Achievement

  • Clear Objective Evaluation: We analyze employee performance against predefined SMART (Specific, Measurable, Achievable, Relevant, Time-bound) goals and objectives.
  • Impact Analysis: The review details the extent to which goals were met, exceeded, or missed, and quantifies the impact of the employee's efforts on team and organizational outcomes.
  • Contextual Insights: Provides a balanced perspective, acknowledging challenges faced and resources utilized.
  • Future Goal Setting Foundation: Lays the groundwork for discussing and setting future objectives based on past performance.

2. Competency Ratings: Skill Proficiency & Behavioral Impact

  • Defined Competency Framework: Evaluates employees across a customizable set of core competencies relevant to their role and your organizational values (e.g., leadership, teamwork, problem-solving, communication, adaptability).
  • Behavioral Indicators: Provides specific examples of behaviors that demonstrate proficiency (or areas for improvement) within each competency, moving beyond subjective judgments.
  • Rating Scale Integration: Incorporates a clear, standardized rating scale (e.g., "Needs Development," "Meets Expectations," "Exceeds Expectations") for consistent assessment.
  • Strength & Growth Identification: Clearly highlights an employee's key strengths and pinpoints competencies that require further development.

3. Development Plans: Structured Growth Pathways

  • Personalized Recommendations: Based on competency ratings and goal assessments, the system suggests tailored development activities.
  • Actionable Steps: Outlines concrete, measurable steps an employee can take to enhance their skills and address identified growth areas (e.g., specific training courses, mentorship opportunities, stretch assignments, self-study resources).
  • Timeline & Resources: Proposes realistic timelines for development goals and identifies necessary resources or support from management.
  • Career Trajectory Alignment: Connects current development efforts to long-term career aspirations and potential future roles within the organization.

4. Constructive Feedback Frameworks: Empowering Dialogue

  • Balanced Perspective: Ensures feedback includes both recognition of achievements and opportunities for improvement.
  • "Situation-Behavior-Impact" (SBI) Model: Structures feedback to be specific, objective, and focused on observable actions and their consequences, rather than personal attributes.
  • Forward-Looking Orientation: Emphasizes future actions and positive change, fostering a growth mindset rather than dwelling on past shortcomings.
  • Empathetic & Professional Tone: Generates feedback that is clear, direct, and supportive, promoting open communication and reducing defensiveness.
  • Guidance for Discussion: Provides prompts and questions to facilitate a productive two-way conversation between manager and employee during the review meeting.

Ready to Transform Your Performance Review Process?

Stop dreading performance review season and start empowering your team with clarity, direction, and motivation. Our Performance Review Writer is more than just a tool; it's a strategic asset for cultivating a high-performing, engaged workforce.

Unlock the power of effective feedback and development today.

[Get Started Now and Generate Your First Professional Review!]

gemini Output

As a professional AI assistant within PantheraHive, I have executed step 3 of 3 for the "Performance Review Writer" workflow, focusing on polishing and formatting the output into a comprehensive, detailed, and professional deliverable.

This document provides a robust framework and detailed sections for generating high-quality performance reviews, complete with goal assessments, competency ratings, development plans, and a constructive feedback framework.


Comprehensive Performance Review Framework

This framework is designed to facilitate objective, fair, and actionable performance reviews that support employee growth and align with organizational objectives. It provides a structured approach to assessing past performance, identifying strengths and development areas, and planning for future success.

1. Employee and Review Details

  • Employee Name: [Employee's Full Name]
  • Employee ID: [Employee ID Number]
  • Job Title: [Employee's Current Job Title]
  • Department: [Department Name]
  • Manager Name: [Manager's Full Name]
  • Review Period: [Start Date] – [End Date]
  • Date of Review: [Date of Performance Review Meeting]
  • Last Review Date: [Date of Previous Performance Review]

2. Overall Performance Summary

  • Summary Statement: Provide a concise overview of the employee's overall performance during the review period. Highlight key achievements and general areas for improvement.

Example: "John consistently exceeded expectations in project delivery and demonstrated strong leadership in key initiatives. While his technical skills are excellent, there are opportunities to enhance his cross-functional communication."*

  • Overall Rating: [e.g., Exceeds Expectations / Meets All Expectations / Meets Some Expectations / Needs Improvement / Not Applicable]

3. Goal Assessments

This section evaluates the employee's progress and achievement against pre-defined goals for the review period. For each goal, provide specific details on outcomes, impact, and any contributing factors.

Rating Scale:

  • Exceeded: Significantly surpassed expectations.
  • Met: Fully achieved expectations.
  • Partially Met: Achieved some, but not all, aspects of the goal.
  • Did Not Meet: Failed to achieve the goal.
  • N/A: Goal was removed or became irrelevant.

Goal 1: [Specific Goal Description - e.g., "Increase customer satisfaction (CSAT) by 10% for Q3." ]

  • Target/Metric: [e.g., 10% increase in CSAT score]
  • Actual Outcome: [e.g., CSAT increased by 12% from 75% to 87%]
  • Impact/Contribution: [Describe the positive impact of achieving this goal, e.g., "This increase directly contributed to a 5% reduction in customer churn and improved brand reputation."]
  • Challenges/Mitigation (if applicable): [Mention any obstacles faced and how they were addressed, e.g., "Initial challenges with survey response rates were overcome by implementing new incentive programs."]
  • Rating: [Exceeded / Met / Partially Met / Did Not Meet / N/A]
  • Manager Comments: [Specific feedback on performance against this goal.]

Goal 2: [Specific Goal Description - e.g., "Successfully launch Project Alpha by end of Q4 within budget."]

  • Target/Metric: [e.g., Project Alpha launch by Dec 31st, within allocated budget.]
  • Actual Outcome: [e.g., Project Alpha launched on Dec 15th, 5% under budget.]
  • Impact/Contribution: [e.g., "The early and under-budget launch allowed for immediate market penetration and freed up resources for subsequent projects."]
  • Challenges/Mitigation (if applicable): [e.g., "Resource allocation issues early in the project were resolved through proactive reallocation and stakeholder communication."]
  • Rating: [Exceeded / Met / Partially Met / Did Not Meet / N/A]
  • Manager Comments: [Specific feedback on performance against this goal.]

(Add more goal sections as needed)

4. Competency Ratings

This section evaluates the employee's performance against core competencies relevant to their role and the organization's values. Provide specific examples to support each rating.

Rating Scale:

  • 5 - Exceeds Expectations: Consistently demonstrates superior performance.
  • 4 - Meets All Expectations: Consistently performs at a high level.
  • 3 - Meets Most Expectations: Generally performs well, with minor areas for improvement.
  • 2 - Needs Improvement: Performance is inconsistent or below expectations; significant development needed.
  • 1 - Does Not Meet Expectations: Performance is consistently unsatisfactory.
  • N/A - Not Applicable: Competency is not relevant to the role or review period.

Competency 1: Communication (Verbal & Written)

  • Definition: Clearly and effectively conveys information, ideas, and feedback to others. Listens actively and ensures understanding.
  • Rating: [1-5 / N/A]
  • Examples/Evidence:

Strength:* "Provided clear and concise updates during weekly team meetings, ensuring all members were aligned on project status."

Development Area:* "Could improve in structuring written reports to be more scannable and impactful for senior leadership."

  • Manager Comments:

Competency 2: Teamwork & Collaboration

  • Definition: Works effectively with others, fostering a positive and productive team environment. Shares knowledge and supports colleagues.
  • Rating: [1-5 / N/A]
  • Examples/Evidence:

Strength:* "Actively supported junior team members, providing guidance that helped them successfully complete their tasks on Project Beta."

Development Area:* "Sometimes takes on too much independently; opportunities to delegate and empower others more effectively."

  • Manager Comments:

Competency 3: Problem-Solving & Decision-Making

  • Definition: Identifies issues, analyzes information, and develops effective solutions. Makes timely and sound decisions.
  • Rating: [1-5 / N/A]
  • Examples/Evidence:

Strength:* "Proactively identified a critical bottleneck in the workflow and proposed an innovative solution that reduced processing time by 15%."

Development Area:* "Could benefit from exploring a wider range of potential solutions before committing to a single approach, especially for complex issues."

  • Manager Comments:

Competency 4: Adaptability & Resilience

  • Definition: Adjusts effectively to changing circumstances, priorities, and work environments. Maintains effectiveness under pressure.
  • Rating: [1-5 / N/A]
  • Examples/Evidence:

Strength:* "Successfully pivoted focus and reprioritized tasks when Project Gamma's scope unexpectedly changed, maintaining project momentum."

Development Area:* "Occasionally shows frustration when faced with sudden changes; opportunities to develop strategies for managing stress in dynamic environments."

  • Manager Comments:

(Add more competency sections as needed, e.g., Leadership, Innovation, Customer Focus, Technical Proficiency, Accountability, etc.)

5. Strengths

Identify key areas where the employee consistently excels and adds significant value to the team and organization. These are areas to leverage and build upon.

  • [Strength 1]: [Specific example illustrating this strength and its positive impact.]

Example: "Exceptional analytical skills: John's ability to quickly dissect complex data sets allowed us to identify market trends overlooked by competitors, leading to a successful new product feature."*

  • [Strength 2]: [Specific example illustrating this strength and its positive impact.]

Example: "Proactive initiative: John frequently takes the lead on new projects without being prompted, demonstrating a strong sense of ownership and driving innovation within the team."*

6. Areas for Development

Identify specific areas where the employee can improve their skills, knowledge, or behaviors to enhance their performance and career growth. Frame these as opportunities.

  • [Development Area 1]: [Specific example illustrating this area and its potential negative impact or missed opportunity.]

Example: "Delegation skills: While John is highly capable, he sometimes takes on too many tasks himself, which can lead to increased workload and missed opportunities for team members to grow. This was evident in the recent marketing campaign where he personally handled all social media scheduling."*

  • [Development Area 2]: [Specific example illustrating this area and its potential negative impact or missed opportunity.]

Example: "Cross-functional communication: John excels within his immediate team but could improve in proactively sharing information and collaborating with other departments. For instance, there was a miscommunication with the sales team regarding product updates on Project Delta, leading to a minor delay."*

7. Development Plan

This section outlines specific, actionable steps to address the identified areas for development and support the employee's career progression. Use SMART goals.

| Development Goal (SMART) | Action Steps

performance_review_writer.md
Download as Markdown
Copy all content
Full output as text
Download ZIP
IDE-ready project ZIP
Copy share link
Permanent URL for this run
Get Embed Code
Embed this result on any website
Print / Save PDF
Use browser print dialog
"); var hasSrcMain=Object.keys(extracted).some(function(k){return k.indexOf("src/main")>=0;}); if(!hasSrcMain) zip.file(folder+"src/main."+ext,"import React from 'react' import ReactDOM from 'react-dom/client' import App from './App' import './index.css' ReactDOM.createRoot(document.getElementById('root')!).render( ) "); var hasSrcApp=Object.keys(extracted).some(function(k){return k==="src/App."+ext||k==="App."+ext;}); if(!hasSrcApp) zip.file(folder+"src/App."+ext,"import React from 'react' import './App.css' function App(){ return(

"+slugTitle(pn)+"

Built with PantheraHive BOS

) } export default App "); zip.file(folder+"src/index.css","*{margin:0;padding:0;box-sizing:border-box} body{font-family:system-ui,-apple-system,sans-serif;background:#f0f2f5;color:#1a1a2e} .app{min-height:100vh;display:flex;flex-direction:column} .app-header{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:40px} h1{font-size:2.5rem;font-weight:700} "); zip.file(folder+"src/App.css",""); zip.file(folder+"src/components/.gitkeep",""); zip.file(folder+"src/pages/.gitkeep",""); zip.file(folder+"src/hooks/.gitkeep",""); Object.keys(extracted).forEach(function(p){ var fp=p.startsWith("src/")?p:"src/"+p; zip.file(folder+fp,extracted[p]); }); zip.file(folder+"README.md","# "+slugTitle(pn)+" Generated by PantheraHive BOS. ## Setup ```bash npm install npm run dev ``` ## Build ```bash npm run build ``` ## Open in IDE Open the project folder in VS Code or WebStorm. "); zip.file(folder+".gitignore","node_modules/ dist/ .env .DS_Store *.local "); } /* --- Vue (Vite + Composition API + TypeScript) --- */ function buildVue(zip,folder,app,code,panelTxt){ var pn=pkgName(app); var C=cc(pn); var extracted=extractCode(panelTxt); zip.file(folder+"package.json",'{ "name": "'+pn+'", "version": "0.0.0", "type": "module", "scripts": { "dev": "vite", "build": "vue-tsc -b && vite build", "preview": "vite preview" }, "dependencies": { "vue": "^3.5.13", "vue-router": "^4.4.5", "pinia": "^2.3.0", "axios": "^1.7.9" }, "devDependencies": { "@vitejs/plugin-vue": "^5.2.1", "typescript": "~5.7.3", "vite": "^6.0.5", "vue-tsc": "^2.2.0" } } '); zip.file(folder+"vite.config.ts","import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import { resolve } from 'path' export default defineConfig({ plugins: [vue()], resolve: { alias: { '@': resolve(__dirname,'src') } } }) "); zip.file(folder+"tsconfig.json",'{"files":[],"references":[{"path":"./tsconfig.app.json"},{"path":"./tsconfig.node.json"}]} '); zip.file(folder+"tsconfig.app.json",'{ "compilerOptions":{ "target":"ES2020","useDefineForClassFields":true,"module":"ESNext","lib":["ES2020","DOM","DOM.Iterable"], "skipLibCheck":true,"moduleResolution":"bundler","allowImportingTsExtensions":true, "isolatedModules":true,"moduleDetection":"force","noEmit":true,"jsxImportSource":"vue", "strict":true,"paths":{"@/*":["./src/*"]} }, "include":["src/**/*.ts","src/**/*.d.ts","src/**/*.tsx","src/**/*.vue"] } '); zip.file(folder+"env.d.ts","/// "); zip.file(folder+"index.html"," "+slugTitle(pn)+"
"); var hasMain=Object.keys(extracted).some(function(k){return k==="src/main.ts"||k==="main.ts";}); if(!hasMain) zip.file(folder+"src/main.ts","import { createApp } from 'vue' import { createPinia } from 'pinia' import App from './App.vue' import './assets/main.css' const app = createApp(App) app.use(createPinia()) app.mount('#app') "); var hasApp=Object.keys(extracted).some(function(k){return k.indexOf("App.vue")>=0;}); if(!hasApp) zip.file(folder+"src/App.vue"," "); zip.file(folder+"src/assets/main.css","*{margin:0;padding:0;box-sizing:border-box}body{font-family:system-ui,sans-serif;background:#fff;color:#213547} "); zip.file(folder+"src/components/.gitkeep",""); zip.file(folder+"src/views/.gitkeep",""); zip.file(folder+"src/stores/.gitkeep",""); Object.keys(extracted).forEach(function(p){ var fp=p.startsWith("src/")?p:"src/"+p; zip.file(folder+fp,extracted[p]); }); zip.file(folder+"README.md","# "+slugTitle(pn)+" Generated by PantheraHive BOS. ## Setup ```bash npm install npm run dev ``` ## Build ```bash npm run build ``` Open in VS Code or WebStorm. "); zip.file(folder+".gitignore","node_modules/ dist/ .env .DS_Store *.local "); } /* --- Angular (v19 standalone) --- */ function buildAngular(zip,folder,app,code,panelTxt){ var pn=pkgName(app); var C=cc(pn); var sel=pn.replace(/_/g,"-"); var extracted=extractCode(panelTxt); zip.file(folder+"package.json",'{ "name": "'+pn+'", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test" }, "dependencies": { "@angular/animations": "^19.0.0", "@angular/common": "^19.0.0", "@angular/compiler": "^19.0.0", "@angular/core": "^19.0.0", "@angular/forms": "^19.0.0", "@angular/platform-browser": "^19.0.0", "@angular/platform-browser-dynamic": "^19.0.0", "@angular/router": "^19.0.0", "rxjs": "~7.8.0", "tslib": "^2.3.0", "zone.js": "~0.15.0" }, "devDependencies": { "@angular-devkit/build-angular": "^19.0.0", "@angular/cli": "^19.0.0", "@angular/compiler-cli": "^19.0.0", "typescript": "~5.6.0" } } '); zip.file(folder+"angular.json",'{ "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "'+pn+'": { "projectType": "application", "root": "", "sourceRoot": "src", "prefix": "app", "architect": { "build": { "builder": "@angular-devkit/build-angular:application", "options": { "outputPath": "dist/'+pn+'", "index": "src/index.html", "browser": "src/main.ts", "tsConfig": "tsconfig.app.json", "styles": ["src/styles.css"], "scripts": [] } }, "serve": {"builder":"@angular-devkit/build-angular:dev-server","configurations":{"production":{"buildTarget":"'+pn+':build:production"},"development":{"buildTarget":"'+pn+':build:development"}},"defaultConfiguration":"development"} } } } } '); zip.file(folder+"tsconfig.json",'{ "compileOnSave": false, "compilerOptions": {"baseUrl":"./","outDir":"./dist/out-tsc","forceConsistentCasingInFileNames":true,"strict":true,"noImplicitOverride":true,"noPropertyAccessFromIndexSignature":true,"noImplicitReturns":true,"noFallthroughCasesInSwitch":true,"paths":{"@/*":["src/*"]},"skipLibCheck":true,"esModuleInterop":true,"sourceMap":true,"declaration":false,"experimentalDecorators":true,"moduleResolution":"bundler","importHelpers":true,"target":"ES2022","module":"ES2022","useDefineForClassFields":false,"lib":["ES2022","dom"]}, "references":[{"path":"./tsconfig.app.json"}] } '); zip.file(folder+"tsconfig.app.json",'{ "extends":"./tsconfig.json", "compilerOptions":{"outDir":"./dist/out-tsc","types":[]}, "files":["src/main.ts"], "include":["src/**/*.d.ts"] } '); zip.file(folder+"src/index.html"," "+slugTitle(pn)+" "); zip.file(folder+"src/main.ts","import { bootstrapApplication } from '@angular/platform-browser'; import { appConfig } from './app/app.config'; import { AppComponent } from './app/app.component'; bootstrapApplication(AppComponent, appConfig) .catch(err => console.error(err)); "); zip.file(folder+"src/styles.css","* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: system-ui, -apple-system, sans-serif; background: #f9fafb; color: #111827; } "); var hasComp=Object.keys(extracted).some(function(k){return k.indexOf("app.component")>=0;}); if(!hasComp){ zip.file(folder+"src/app/app.component.ts","import { Component } from '@angular/core'; import { RouterOutlet } from '@angular/router'; @Component({ selector: 'app-root', standalone: true, imports: [RouterOutlet], templateUrl: './app.component.html', styleUrl: './app.component.css' }) export class AppComponent { title = '"+pn+"'; } "); zip.file(folder+"src/app/app.component.html","

"+slugTitle(pn)+"

Built with PantheraHive BOS

"); zip.file(folder+"src/app/app.component.css",".app-header{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;gap:16px}h1{font-size:2.5rem;font-weight:700;color:#6366f1} "); } zip.file(folder+"src/app/app.config.ts","import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core'; import { provideRouter } from '@angular/router'; import { routes } from './app.routes'; export const appConfig: ApplicationConfig = { providers: [ provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes) ] }; "); zip.file(folder+"src/app/app.routes.ts","import { Routes } from '@angular/router'; export const routes: Routes = []; "); Object.keys(extracted).forEach(function(p){ var fp=p.startsWith("src/")?p:"src/"+p; zip.file(folder+fp,extracted[p]); }); zip.file(folder+"README.md","# "+slugTitle(pn)+" Generated by PantheraHive BOS. ## Setup ```bash npm install ng serve # or: npm start ``` ## Build ```bash ng build ``` Open in VS Code with Angular Language Service extension. "); zip.file(folder+".gitignore","node_modules/ dist/ .env .DS_Store *.local .angular/ "); } /* --- Python --- */ function buildPython(zip,folder,app,code){ var title=slugTitle(app); var pn=pkgName(app); var src=code.replace(/^```[w]* ?/m,"").replace(/ ?```$/m,"").trim(); var reqMap={"numpy":"numpy","pandas":"pandas","sklearn":"scikit-learn","tensorflow":"tensorflow","torch":"torch","flask":"flask","fastapi":"fastapi","uvicorn":"uvicorn","requests":"requests","sqlalchemy":"sqlalchemy","pydantic":"pydantic","dotenv":"python-dotenv","PIL":"Pillow","cv2":"opencv-python","matplotlib":"matplotlib","seaborn":"seaborn","scipy":"scipy"}; var reqs=[]; Object.keys(reqMap).forEach(function(k){if(src.indexOf("import "+k)>=0||src.indexOf("from "+k)>=0)reqs.push(reqMap[k]);}); var reqsTxt=reqs.length?reqs.join(" "):"# add dependencies here "; zip.file(folder+"main.py",src||"# "+title+" # Generated by PantheraHive BOS print(title+" loaded") "); zip.file(folder+"requirements.txt",reqsTxt); zip.file(folder+".env.example","# Environment variables "); zip.file(folder+"README.md","# "+title+" Generated by PantheraHive BOS. ## Setup ```bash python3 -m venv .venv source .venv/bin/activate pip install -r requirements.txt ``` ## Run ```bash python main.py ``` "); zip.file(folder+".gitignore",".venv/ __pycache__/ *.pyc .env .DS_Store "); } /* --- Node.js --- */ function buildNode(zip,folder,app,code){ var title=slugTitle(app); var pn=pkgName(app); var src=code.replace(/^```[w]* ?/m,"").replace(/ ?```$/m,"").trim(); var depMap={"mongoose":"^8.0.0","dotenv":"^16.4.5","axios":"^1.7.9","cors":"^2.8.5","bcryptjs":"^2.4.3","jsonwebtoken":"^9.0.2","socket.io":"^4.7.4","uuid":"^9.0.1","zod":"^3.22.4","express":"^4.18.2"}; var deps={}; Object.keys(depMap).forEach(function(k){if(src.indexOf(k)>=0)deps[k]=depMap[k];}); if(!deps["express"])deps["express"]="^4.18.2"; var pkgJson=JSON.stringify({"name":pn,"version":"1.0.0","main":"src/index.js","scripts":{"start":"node src/index.js","dev":"nodemon src/index.js"},"dependencies":deps,"devDependencies":{"nodemon":"^3.0.3"}},null,2)+" "; zip.file(folder+"package.json",pkgJson); var fallback="const express=require("express"); const app=express(); app.use(express.json()); app.get("/",(req,res)=>{ res.json({message:""+title+" API"}); }); const PORT=process.env.PORT||3000; app.listen(PORT,()=>console.log("Server on port "+PORT)); "; zip.file(folder+"src/index.js",src||fallback); zip.file(folder+".env.example","PORT=3000 "); zip.file(folder+".gitignore","node_modules/ .env .DS_Store "); zip.file(folder+"README.md","# "+title+" Generated by PantheraHive BOS. ## Setup ```bash npm install ``` ## Run ```bash npm run dev ``` "); } /* --- Vanilla HTML --- */ function buildVanillaHtml(zip,folder,app,code){ var title=slugTitle(app); var isFullDoc=code.trim().toLowerCase().indexOf("=0||code.trim().toLowerCase().indexOf("=0; var indexHtml=isFullDoc?code:" "+title+" "+code+" "; zip.file(folder+"index.html",indexHtml); zip.file(folder+"style.css","/* "+title+" — styles */ *{margin:0;padding:0;box-sizing:border-box} body{font-family:system-ui,-apple-system,sans-serif;background:#fff;color:#1a1a2e} "); zip.file(folder+"script.js","/* "+title+" — scripts */ "); zip.file(folder+"assets/.gitkeep",""); zip.file(folder+"README.md","# "+title+" Generated by PantheraHive BOS. ## Open Double-click `index.html` in your browser. Or serve locally: ```bash npx serve . # or python3 -m http.server 3000 ``` "); zip.file(folder+".gitignore",".DS_Store node_modules/ .env "); } /* ===== MAIN ===== */ var sc=document.createElement("script"); sc.src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"; sc.onerror=function(){ if(lbl)lbl.textContent="Download ZIP"; alert("JSZip load failed — check connection."); }; sc.onload=function(){ var zip=new JSZip(); var base=(_phFname||"output").replace(/.[^.]+$/,""); var app=base.toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"")||"my_app"; var folder=app+"/"; var vc=document.getElementById("panel-content"); var panelTxt=vc?(vc.innerText||vc.textContent||""):""; var lang=detectLang(_phCode,panelTxt); if(_phIsHtml){ buildVanillaHtml(zip,folder,app,_phCode); } else if(lang==="flutter"){ buildFlutter(zip,folder,app,_phCode,panelTxt); } else if(lang==="react-native"){ buildReactNative(zip,folder,app,_phCode,panelTxt); } else if(lang==="swift"){ buildSwift(zip,folder,app,_phCode,panelTxt); } else if(lang==="kotlin"){ buildKotlin(zip,folder,app,_phCode,panelTxt); } else if(lang==="react"){ buildReact(zip,folder,app,_phCode,panelTxt); } else if(lang==="vue"){ buildVue(zip,folder,app,_phCode,panelTxt); } else if(lang==="angular"){ buildAngular(zip,folder,app,_phCode,panelTxt); } else if(lang==="python"){ buildPython(zip,folder,app,_phCode); } else if(lang==="node"){ buildNode(zip,folder,app,_phCode); } else { /* Document/content workflow */ var title=app.replace(/_/g," "); var md=_phAll||_phCode||panelTxt||"No content"; zip.file(folder+app+".md",md); var h=""+title+""; h+="

"+title+"

"; var hc=md.replace(/&/g,"&").replace(//g,">"); hc=hc.replace(/^### (.+)$/gm,"

$1

"); hc=hc.replace(/^## (.+)$/gm,"

$1

"); hc=hc.replace(/^# (.+)$/gm,"

$1

"); hc=hc.replace(/**(.+?)**/g,"$1"); hc=hc.replace(/ {2,}/g,"

"); h+="

"+hc+"

Generated by PantheraHive BOS
"; zip.file(folder+app+".html",h); zip.file(folder+"README.md","# "+title+" Generated by PantheraHive BOS. Files: - "+app+".md (Markdown) - "+app+".html (styled HTML) "); } zip.generateAsync({type:"blob"}).then(function(blob){ var a=document.createElement("a"); a.href=URL.createObjectURL(blob); a.download=app+".zip"; a.click(); URL.revokeObjectURL(a.href); if(lbl)lbl.textContent="Download ZIP"; }); }; document.head.appendChild(sc); }function phShare(){navigator.clipboard.writeText(window.location.href).then(function(){var el=document.getElementById("ph-share-lbl");if(el){el.textContent="Link copied!";setTimeout(function(){el.textContent="Copy share link";},2500);}});}function phEmbed(){var runId=window.location.pathname.split("/").pop().replace(".html","");var embedUrl="https://pantherahive.com/embed/"+runId;var code='';navigator.clipboard.writeText(code).then(function(){var el=document.getElementById("ph-embed-lbl");if(el){el.textContent="Embed code copied!";setTimeout(function(){el.textContent="Get Embed Code";},2500);}});}